@@ -86,6 +86,7 @@ |
||
86 | 86 | |
87 | 87 | /** |
88 | 88 | * Get the MMS ID of the linked record in network zone. |
89 | + * @return string |
|
89 | 90 | */ |
90 | 91 | public function getNzMmsId() |
91 | 92 | { |
@@ -21,6 +21,9 @@ |
||
21 | 21 | $this->beConstructedWith($client, '999104760474702204'); |
22 | 22 | } |
23 | 23 | |
24 | + /** |
|
25 | + * @param AlmaClient $client |
|
26 | + */ |
|
24 | 27 | protected function expectRequest($client) |
25 | 28 | { |
26 | 29 | $client->getXML('/bibs/999104760474702204') |
@@ -167,7 +167,7 @@ |
||
167 | 167 | /** |
168 | 168 | * Set the Alma region code ('na' for North America, 'eu' for Europe, 'ap' for Asia Pacific). |
169 | 169 | * |
170 | - * @param $regionCode |
|
170 | + * @param string $regionCode |
|
171 | 171 | * |
172 | 172 | * @throws \ErrorException |
173 | 173 | * |
@@ -84,9 +84,9 @@ |
||
84 | 84 | /** |
85 | 85 | * Convert a retrieved resource to an object. |
86 | 86 | * |
87 | - * @param $data |
|
87 | + * @param QuiteSimpleXMLElement $data |
|
88 | 88 | * |
89 | - * @return mixed |
|
89 | + * @return Row |
|
90 | 90 | */ |
91 | 91 | protected function convertToResource($data) |
92 | 92 | { |
@@ -39,6 +39,9 @@ |
||
39 | 39 | } while (!$this->isInitialized($this->resources)); |
40 | 40 | } |
41 | 41 | |
42 | + /** |
|
43 | + * @param \stdClass $data |
|
44 | + */ |
|
42 | 45 | protected function onData($data) |
43 | 46 | { |
44 | 47 | parent::onData($data); |
@@ -19,6 +19,9 @@ |
||
19 | 19 | $this->beConstructedWith($client, $bib, $holdings_id); |
20 | 20 | } |
21 | 21 | |
22 | + /** |
|
23 | + * @param AlmaClient $client |
|
24 | + */ |
|
22 | 25 | protected function expectRequest($client) |
23 | 26 | { |
24 | 27 | $client->getXML('/bibs/abc/holdings/123') |
@@ -90,7 +90,7 @@ |
||
90 | 90 | /** |
91 | 91 | * Get and return the model data. |
92 | 92 | * |
93 | - * @return object |
|
93 | + * @return \stdClass |
|
94 | 94 | */ |
95 | 95 | protected function fetchData() |
96 | 96 | { |
@@ -23,6 +23,9 @@ |
||
23 | 23 | $this->shouldHaveType(ElectronicCollections::class); |
24 | 24 | } |
25 | 25 | |
26 | + /** |
|
27 | + * @param AlmaClient $client |
|
28 | + */ |
|
26 | 29 | protected function expectRequest($client) |
27 | 30 | { |
28 | 31 | $client->getJSON('/bibs/abc/e-collections') |
@@ -25,6 +25,9 @@ |
||
25 | 25 | $this->shouldHaveType(Portfolio::class); |
26 | 26 | } |
27 | 27 | |
28 | + /** |
|
29 | + * @param AlmaClient $client |
|
30 | + */ |
|
28 | 31 | protected function expectRequest($client) |
29 | 32 | { |
30 | 33 | $client->getJSON('/bibs/abc/portfolios/123') |