1 | <?php declare(strict_types = 1); |
||
26 | class Image extends Results |
||
27 | { |
||
28 | /** |
||
29 | * Id |
||
30 | * @var int |
||
31 | */ |
||
32 | protected $id; |
||
33 | /** |
||
34 | * Aspect ratio |
||
35 | * @var float |
||
36 | */ |
||
37 | protected $aspect_ratio; |
||
38 | /** |
||
39 | * Image file path |
||
40 | * @var string |
||
41 | */ |
||
42 | protected $file_path; |
||
43 | /** |
||
44 | * Height |
||
45 | * @var int |
||
46 | */ |
||
47 | protected $height; |
||
48 | /** |
||
49 | * Language format ISO 639 1 |
||
50 | * @var string |
||
51 | */ |
||
52 | protected $iso_639_1; |
||
53 | /** |
||
54 | * Vote Average |
||
55 | * @var float |
||
56 | */ |
||
57 | protected $vote_average; |
||
58 | /** |
||
59 | * Vote count |
||
60 | * @var int |
||
61 | */ |
||
62 | protected $vote_count; |
||
63 | /** |
||
64 | * Width |
||
65 | * @var int |
||
66 | */ |
||
67 | protected $width; |
||
68 | |||
69 | /** |
||
70 | * Constructor |
||
71 | * @param TmdbInterface $tmdb |
||
72 | * @param int $id |
||
73 | * @param \stdClass $result |
||
74 | */ |
||
75 | 18 | public function __construct(TmdbInterface $tmdb, int $id, \stdClass $result) |
|
89 | |||
90 | /** |
||
91 | * Id |
||
92 | * @return int |
||
93 | */ |
||
94 | 1 | public function getId() : int |
|
98 | |||
99 | /** |
||
100 | * Aspect ratio |
||
101 | * @return float |
||
102 | */ |
||
103 | 1 | public function getAspectRatio() : float |
|
107 | |||
108 | /** |
||
109 | * Image file path |
||
110 | * @return string |
||
111 | */ |
||
112 | 1 | public function getFilePath() : string |
|
116 | |||
117 | /** |
||
118 | * Height |
||
119 | * @return int |
||
120 | */ |
||
121 | 1 | public function getHeight() : int |
|
125 | |||
126 | /** |
||
127 | * Language format ISO 639 1 |
||
128 | * @return string|null |
||
129 | */ |
||
130 | 1 | public function getIso6391() : ?string |
|
134 | |||
135 | /** |
||
136 | * Vote average |
||
137 | * @return float |
||
138 | */ |
||
139 | 1 | public function getVoteAverage() : float |
|
143 | |||
144 | /** |
||
145 | * Vote count |
||
146 | * @return int |
||
147 | */ |
||
148 | 1 | public function getVoteCount() : int |
|
152 | |||
153 | /** |
||
154 | * Width |
||
155 | * @return int |
||
156 | */ |
||
157 | 1 | public function getWidth() : int |
|
161 | } |
||
162 |