1 | <?php |
||
5 | class Volume |
||
6 | { |
||
7 | protected $client; |
||
8 | protected $data; |
||
9 | protected $full = false; |
||
10 | |||
11 | protected static $coverSizes = [ |
||
12 | "extraLarge", |
||
13 | "large", |
||
14 | "medium", |
||
15 | "small", |
||
16 | "thumbnail", |
||
17 | "smallThumbnail", |
||
18 | ]; |
||
19 | |||
20 | public function __construct($client, $data, $full=false) |
||
25 | |||
26 | /** |
||
27 | * Returns cover of size $preferredSize or smaller if a cover of size $preferredSize does not exist. |
||
28 | * |
||
29 | * @param string $preferredSize |
||
30 | * @return mixed|null |
||
31 | */ |
||
32 | public function getCover($preferredSize='extraLarge') |
||
59 | |||
60 | protected function removeCoverEdge($url) { |
||
67 | |||
68 | public function __get($key) |
||
76 | |||
77 | public function __isset($key) |
||
81 | |||
82 | public function __toString() |
||
86 | } |
||
87 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.