@@ -17,6 +17,9 @@ |
||
17 | 17 | "smallThumbnail", |
18 | 18 | ]; |
19 | 19 | |
20 | + /** |
|
21 | + * @param GoogleBooks $client |
|
22 | + */ |
|
20 | 23 | public function __construct($client, $data, $full=false) |
21 | 24 | { |
22 | 25 | $this->client = $client; |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | |
28 | 28 | /** |
29 | 29 | * @param $query |
30 | - * @return \Generator|Volume |
|
30 | + * @return \Generator |
|
31 | 31 | */ |
32 | 32 | private function fetchSearch($query) |
33 | 33 | { |
@@ -46,6 +46,9 @@ discard block |
||
46 | 46 | return $this; |
47 | 47 | } |
48 | 48 | |
49 | + /** |
|
50 | + * @param string $query |
|
51 | + */ |
|
49 | 52 | public function firstOrNull($query) |
50 | 53 | { |
51 | 54 | $res = $this->search($query)->current(); |