1 | <?php |
||
10 | class Items extends CountableGhostModelList implements \Countable, \Iterator, \ArrayAccess |
||
11 | { |
||
12 | use ArrayAccessResource; |
||
13 | use IterableResource; |
||
14 | |||
15 | /* @var Bib */ |
||
16 | public $bib; |
||
17 | |||
18 | /* @var Holding*/ |
||
19 | public $holding; |
||
20 | |||
21 | public function __construct(Client $client, Bib $bib = null, Holding $holding = null) |
||
27 | |||
28 | public function setData(\stdClass $data) |
||
38 | |||
39 | /** |
||
40 | * Get an Item object from a barcode. |
||
41 | * |
||
42 | * @param string $barcode |
||
43 | * |
||
44 | * @return Item|null |
||
45 | */ |
||
46 | public function fromBarcode($barcode) |
||
65 | |||
66 | /** |
||
67 | * Check if we have the full representation of our data object. |
||
68 | * |
||
69 | * @param \stdClass $data |
||
70 | * @return boolean |
||
71 | */ |
||
72 | protected function isInitialized($data) |
||
76 | |||
77 | /** |
||
78 | * Generate the base URL for this resource. |
||
79 | * |
||
80 | * @return string |
||
81 | */ |
||
82 | protected function urlBase() |
||
86 | } |
||
87 |