1 | <?php |
||
15 | class Animation extends BaseType implements TypeInterface |
||
16 | { |
||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | * |
||
20 | * @var array |
||
21 | */ |
||
22 | static protected $requiredParams = ['file_id', 'width', 'height', 'duration']; |
||
23 | |||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | * |
||
27 | * @var array |
||
28 | */ |
||
29 | static protected $map = [ |
||
30 | 'file_id' => true, |
||
31 | 'width' => true, |
||
32 | 'height' => true, |
||
33 | 'duration' => true, |
||
34 | 'thumb' => PhotoSize::class, |
||
35 | 'file_name' => true, |
||
36 | 'mime_type' => true, |
||
37 | 'file_size' => true |
||
38 | ]; |
||
39 | |||
40 | /** |
||
41 | * Unique file identifier |
||
42 | * |
||
43 | * @var string |
||
44 | */ |
||
45 | protected $fileId; |
||
46 | |||
47 | /** |
||
48 | * Video width as defined by sender |
||
49 | * |
||
50 | * @var int |
||
51 | */ |
||
52 | protected $width; |
||
53 | |||
54 | /** |
||
55 | * Video height as defined by sender |
||
56 | * |
||
57 | * @var int |
||
58 | */ |
||
59 | protected $height; |
||
60 | |||
61 | /** |
||
62 | * Duration of the video in seconds as defined by sender |
||
63 | * |
||
64 | * @var int |
||
65 | */ |
||
66 | protected $duration; |
||
67 | |||
68 | /** |
||
69 | * Video thumbnail |
||
70 | * |
||
71 | * @var PhotoSize |
||
72 | */ |
||
73 | protected $thumb; |
||
74 | |||
75 | /** |
||
76 | * Optional. Animation thumbnail as defined by sender |
||
77 | * |
||
78 | * @var PhotoSize |
||
79 | */ |
||
80 | protected $fileName; |
||
81 | |||
82 | /** |
||
83 | * Optional. Mime type of a file as defined by sender |
||
84 | * |
||
85 | * @var string |
||
86 | */ |
||
87 | protected $mimeType; |
||
88 | |||
89 | /** |
||
90 | * Optional. File size |
||
91 | * |
||
92 | * @var int |
||
93 | */ |
||
94 | protected $fileSize; |
||
95 | |||
96 | /** |
||
97 | * @return int |
||
98 | */ |
||
99 | public function getDuration() |
||
103 | |||
104 | /** |
||
105 | * @param int $duration |
||
106 | * |
||
107 | * @throws InvalidArgumentException |
||
108 | */ |
||
109 | public function setDuration($duration) |
||
117 | |||
118 | /** |
||
119 | * @return string |
||
120 | */ |
||
121 | public function getFileId() |
||
125 | |||
126 | /** |
||
127 | * @param string $fileId |
||
128 | */ |
||
129 | public function setFileId($fileId) |
||
133 | |||
134 | /** |
||
135 | * @return int |
||
136 | */ |
||
137 | public function getFileSize() |
||
141 | |||
142 | /** |
||
143 | * @param int $fileSize |
||
144 | * |
||
145 | * @throws InvalidArgumentException |
||
146 | */ |
||
147 | public function setFileSize($fileSize) |
||
155 | |||
156 | /** |
||
157 | * @return int |
||
158 | */ |
||
159 | public function getHeight() |
||
163 | |||
164 | /** |
||
165 | * @param int $height |
||
166 | * |
||
167 | * @throws InvalidArgumentException |
||
168 | */ |
||
169 | public function setHeight($height) |
||
177 | |||
178 | /** |
||
179 | * @return string |
||
180 | */ |
||
181 | public function getMimeType() |
||
185 | |||
186 | /** |
||
187 | * @param string $mimeType |
||
188 | */ |
||
189 | public function setMimeType($mimeType) |
||
193 | |||
194 | /** |
||
195 | * @return PhotoSize |
||
196 | */ |
||
197 | public function getThumb() |
||
201 | |||
202 | /** |
||
203 | * @param PhotoSize $thumb |
||
204 | */ |
||
205 | public function setThumb(PhotoSize $thumb) |
||
209 | |||
210 | /** |
||
211 | * @return string $fileName |
||
212 | */ |
||
213 | public function getFileName() |
||
217 | |||
218 | /** |
||
219 | * @param string $fileName |
||
220 | */ |
||
221 | public function setFileName($fileName) |
||
225 | |||
226 | /** |
||
227 | * @return int |
||
228 | */ |
||
229 | public function getWidth() |
||
233 | |||
234 | /** |
||
235 | * @param int $width |
||
236 | * |
||
237 | * @throws InvalidArgumentException |
||
238 | */ |
||
239 | public function setWidth($width) |
||
247 | } |
||
248 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..