1 | <?php declare(strict_types = 1); |
||
26 | class Logo extends Results |
||
27 | { |
||
28 | /** |
||
29 | * Id |
||
30 | * @var int |
||
31 | */ |
||
32 | protected $id; |
||
33 | /** |
||
34 | * Id |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $logo_id; |
||
38 | /** |
||
39 | * Aspect ratio |
||
40 | * @var float |
||
41 | */ |
||
42 | protected $aspect_ratio; |
||
43 | /** |
||
44 | * Logo file path |
||
45 | * @var string |
||
46 | */ |
||
47 | protected $file_path; |
||
48 | /** |
||
49 | * Height |
||
50 | * @var int |
||
51 | */ |
||
52 | protected $height; |
||
53 | /** |
||
54 | * Original file type |
||
55 | * @var string |
||
56 | */ |
||
57 | protected $file_type; |
||
58 | /** |
||
59 | * Vote Average |
||
60 | * @var float |
||
61 | */ |
||
62 | protected $vote_average; |
||
63 | /** |
||
64 | * Vote count |
||
65 | * @var int |
||
66 | */ |
||
67 | protected $vote_count; |
||
68 | /** |
||
69 | * Width |
||
70 | * @var int |
||
71 | */ |
||
72 | protected $width; |
||
73 | |||
74 | /** |
||
75 | * Constructor |
||
76 | * @param TmdbInterface $tmdb |
||
77 | * @param int $id |
||
78 | * @param \stdClass $result |
||
79 | */ |
||
80 | 39 | public function __construct(TmdbInterface $tmdb, int $id, \stdClass $result) |
|
96 | |||
97 | /** |
||
98 | * Id |
||
99 | * @return int |
||
100 | */ |
||
101 | 3 | public function getId() : int |
|
105 | |||
106 | /** |
||
107 | * Aspect ratio |
||
108 | * @return float |
||
109 | */ |
||
110 | 3 | public function getAspectRatio() : float |
|
114 | |||
115 | /** |
||
116 | * Logo file path |
||
117 | * @return string |
||
118 | */ |
||
119 | 9 | public function getFilePath($svg = true) : string |
|
127 | |||
128 | /** |
||
129 | * Original file type |
||
130 | * @return string |
||
131 | */ |
||
132 | 3 | public function getFileType() : string |
|
136 | |||
137 | /** |
||
138 | * Height |
||
139 | * @return int |
||
140 | */ |
||
141 | 3 | public function getHeight() : int |
|
145 | |||
146 | /** |
||
147 | * Id |
||
148 | * @return string |
||
149 | */ |
||
150 | 3 | public function getLogoId() : string |
|
154 | |||
155 | /** |
||
156 | * Vote average |
||
157 | * @return float |
||
158 | */ |
||
159 | 3 | public function getVoteAverage() : float |
|
163 | |||
164 | /** |
||
165 | * Vote count |
||
166 | * @return int |
||
167 | */ |
||
168 | 3 | public function getVoteCount() : int |
|
172 | |||
173 | /** |
||
174 | * Width |
||
175 | * @return int |
||
176 | */ |
||
177 | 3 | public function getWidth() : int |
|
181 | } |
||
182 |