@@ -5,7 +5,6 @@ |
||
5 | 5 | use Scriptotek\Alma\Client as AlmaClient; |
6 | 6 | use Scriptotek\Alma\Conf\Library; |
7 | 7 | use PhpSpec\ObjectBehavior; |
8 | -use Prophecy\Argument; |
|
9 | 8 | use Scriptotek\Alma\Conf\Locations; |
10 | 9 | |
11 | 10 | class LibrarySpec extends ObjectBehavior |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Scriptotek\Alma\Conf\Library; |
7 | 7 | use Scriptotek\Alma\Conf\Location; |
8 | 8 | use PhpSpec\ObjectBehavior; |
9 | -use Prophecy\Argument; |
|
10 | 9 | |
11 | 10 | class LocationSpec extends ObjectBehavior |
12 | 11 | { |
@@ -21,7 +21,6 @@ |
||
21 | 21 | use Scriptotek\Alma\Bibs\Bibs; |
22 | 22 | use Scriptotek\Alma\Bibs\Items; |
23 | 23 | use Scriptotek\Alma\Conf\Conf; |
24 | -use Scriptotek\Alma\Conf\Libraries; |
|
25 | 24 | use Scriptotek\Alma\Exception\ClientException as AlmaClientException; |
26 | 25 | use Scriptotek\Alma\Exception\InvalidApiKey; |
27 | 26 | use Scriptotek\Alma\Exception\MaxNumberOfAttemptsExhausted; |
@@ -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 | * |
@@ -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 | { |
@@ -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 | { |
@@ -95,7 +95,7 @@ |
||
95 | 95 | * Called when data is available to be processed. |
96 | 96 | * The resource classes can use this method to process the data. |
97 | 97 | * |
98 | - * @param mixed $data |
|
98 | + * @param \stdClass $data |
|
99 | 99 | */ |
100 | 100 | protected function onData($data) |
101 | 101 | { |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Scriptotek\Alma\Model; |
4 | 4 | |
5 | -use Psr\Http\Message\UriInterface; |
|
6 | -use Scriptotek\Alma\Client; |
|
7 | 5 | use Scriptotek\Alma\Exception\ResourceNotFound; |
8 | 6 | |
9 | 7 | /** |
@@ -77,7 +77,7 @@ |
||
77 | 77 | * @param string $cql The CQL query |
78 | 78 | * @param int $batchSize Number of records to return in each batch. |
79 | 79 | * |
80 | - * @return \Generator|Bib[] |
|
80 | + * @return \Generator |
|
81 | 81 | */ |
82 | 82 | public function search($cql, $batchSize = 10) |
83 | 83 | { |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use PhpSpec\ObjectBehavior; |
6 | 6 | use Scriptotek\Alma\Analytics\Report; |
7 | 7 | use Scriptotek\Alma\Analytics\Row; |
8 | -use Scriptotek\Alma\Analytics\Rows; |
|
9 | 8 | use Scriptotek\Alma\Client; |
10 | 9 | use Scriptotek\Alma\Exception\ResourceNotFound; |
11 | 10 | use spec\Scriptotek\Alma\SpecHelper; |
@@ -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') |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Prophecy\Argument; |
7 | 7 | use Scriptotek\Alma\Bibs\Bib; |
8 | 8 | use Scriptotek\Alma\Bibs\Bibs; |
9 | -use Scriptotek\Alma\Bibs\Holding; |
|
10 | 9 | use Scriptotek\Alma\Bibs\Holdings; |
11 | 10 | use Scriptotek\Alma\Client as AlmaClient; |
12 | 11 | use Scriptotek\Alma\Exception\ResourceNotFound; |