@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use Psr\Http\Message\UriInterface; |
| 7 | 7 | use Scriptotek\Alma\Analytics\Report; |
| 8 | 8 | use Scriptotek\Alma\Analytics\Row; |
| 9 | -use Scriptotek\Alma\Analytics\Rows; |
|
| 10 | 9 | use Scriptotek\Alma\Client; |
| 11 | 10 | use Scriptotek\Alma\Exception\ResourceNotFound; |
| 12 | 11 | use spec\Scriptotek\Alma\SpecHelper; |
@@ -22,6 +22,10 @@ |
||
| 22 | 22 | $this->beConstructedWith($client, $mms_id); |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | + /** |
|
| 26 | + * @param AlmaClient $client |
|
| 27 | + * @param UriInterface $url |
|
| 28 | + */ |
|
| 25 | 29 | protected function expectRequest($client, $url) |
| 26 | 30 | { |
| 27 | 31 | $client->buildUrl('/bibs/999104760474702204', []) |
@@ -78,8 +78,8 @@ |
||
| 78 | 78 | /** |
| 79 | 79 | * Convert a retrieved resource to an object. |
| 80 | 80 | * |
| 81 | - * @param $data |
|
| 82 | - * @return mixed |
|
| 81 | + * @param QuiteSimpleXMLElement $data |
|
| 82 | + * @return Row |
|
| 83 | 83 | */ |
| 84 | 84 | protected function convertToResource($data) |
| 85 | 85 | { |
@@ -167,7 +167,7 @@ discard block |
||
| 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 | * |
@@ -187,7 +187,6 @@ discard block |
||
| 187 | 187 | * Extend an URL (UriInterface or string) with query string parameters |
| 188 | 188 | * and return an UriInterface object. |
| 189 | 189 | * |
| 190 | - * @param string $url|UriInterface |
|
| 191 | 190 | * @param array $query |
| 192 | 191 | * |
| 193 | 192 | * @return UriInterface |
@@ -270,7 +269,6 @@ discard block |
||
| 270 | 269 | /** |
| 271 | 270 | * Make a GET request. |
| 272 | 271 | * |
| 273 | - * @param string $url|UriInterface |
|
| 274 | 272 | * @param array $query |
| 275 | 273 | * @param string $contentType |
| 276 | 274 | * |
@@ -291,7 +289,6 @@ discard block |
||
| 291 | 289 | /** |
| 292 | 290 | * Make a GET request, accepting JSON. |
| 293 | 291 | * |
| 294 | - * @param string $url|UriInterface |
|
| 295 | 292 | * @param array $query |
| 296 | 293 | * |
| 297 | 294 | * @return \stdClass JSON response as an object. |
@@ -306,8 +303,8 @@ discard block |
||
| 306 | 303 | /** |
| 307 | 304 | * Make a GET request, accepting XML. |
| 308 | 305 | * |
| 309 | - * @param string $url|UriInterface |
|
| 310 | 306 | * @param array $query |
| 307 | + * @param UriInterface $url |
|
| 311 | 308 | * |
| 312 | 309 | * @return QuiteSimpleXMLElement |
| 313 | 310 | */ |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | /** |
| 75 | 75 | * Store data onto object. Can be overriden. |
| 76 | 76 | * |
| 77 | - * @param mixed $data |
|
| 77 | + * @param \stdClass $data |
|
| 78 | 78 | */ |
| 79 | 79 | protected function setData($data) |
| 80 | 80 | { |