| 1 | <?php |
||
| 12 | class Holding extends LazyResource |
||
| 13 | { |
||
| 14 | /* @var string */ |
||
| 15 | public $holding_id; |
||
| 16 | |||
| 17 | /* @var Bib */ |
||
| 18 | public $bib; |
||
| 19 | |||
| 20 | /* @var Items */ |
||
| 21 | public $items; |
||
| 22 | |||
| 23 | /* @var MarcRecord */ |
||
| 24 | protected $_marc; |
||
| 25 | |||
| 26 | public function __construct(Client $client, Bib $bib, $holding_id) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Check if we have the full representation of our data object. |
||
| 36 | * |
||
| 37 | * @param \stdClass $data |
||
| 38 | * @return boolean |
||
| 39 | */ |
||
| 40 | protected function isInitialized($data) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Called when data is available to be processed. |
||
| 47 | * |
||
| 48 | * @param mixed $data |
||
| 49 | */ |
||
| 50 | protected function onData($data) |
||
| 51 | { |
||
| 52 | $this->_marc = MarcRecord::fromString($data->anies[0]); |
||
|
|
|||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Generate the base URL for this resource. |
||
| 57 | * |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | protected function urlBase() |
||
| 64 | |||
| 65 | /** |
||
| 66 | * Get the MARC record. |
||
| 67 | */ |
||
| 68 | public function getRecord() |
||
| 72 | |||
| 73 | /** |
||
| 74 | * Get the items for this holding. |
||
| 75 | */ |
||
| 76 | public function getItems() |
||
| 80 | } |
||
| 81 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..