We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccd3012 commit ea12ddcCopy full SHA for ea12ddc
src/Fields/Field.php
@@ -23,4 +23,10 @@ public function __get($key)
23
return call_user_func(array($this, $method));
24
}
25
26
+
27
+ public function sf($code)
28
+ {
29
+ $x = $this->getSubfield($code);
30
+ return $x->getData();
31
+ }
32
tests/FieldsTest.php
@@ -18,7 +18,8 @@ public function testIsbn()
18
</record>';
19
20
$record = Record::fromString($source);
21
- $this->assertEquals(array('8200424421'), $record->isbns);
+ $this->assertEquals(['8200424421'], $record->isbns);
22
+ $this->assertEquals('Nkr 98.00', $record->isbns[0]->sf('c'));
public function test020withoutA()
0 commit comments