1 | <?php |
||
15 | class Audio extends BaseType implements TypeInterface |
||
16 | { |
||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | * |
||
20 | * @var array |
||
21 | */ |
||
22 | static protected $requiredParams = ['file_id', 'duration']; |
||
23 | |||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | * |
||
27 | * @var array |
||
28 | */ |
||
29 | static protected $map = [ |
||
30 | 'file_id' => true, |
||
31 | 'file_unique_id' => true, |
||
32 | 'duration' => true, |
||
33 | 'performer' => true, |
||
34 | 'title' => true, |
||
35 | 'mime_type' => true, |
||
36 | 'file_size' => true |
||
37 | ]; |
||
38 | |||
39 | /** |
||
40 | * Identifier for this file, which can be used to download or reuse the file |
||
41 | * |
||
42 | * @var string |
||
43 | */ |
||
44 | protected $fileId; |
||
45 | |||
46 | /** |
||
47 | * Unique identifier for this file, which is supposed |
||
48 | * to be thesame over time and for different bots. |
||
49 | * Can't be used to download or reuse the file. |
||
50 | * |
||
51 | * @var string |
||
52 | */ |
||
53 | protected $fileUniqueId; |
||
54 | |||
55 | /** |
||
56 | * Photo width |
||
57 | * |
||
58 | * @var int |
||
59 | */ |
||
60 | protected $duration; |
||
61 | |||
62 | /** |
||
63 | * Optional. Performer of the audio as defined by sender or by audio tags |
||
64 | * |
||
65 | * @var string |
||
66 | */ |
||
67 | protected $performer; |
||
68 | |||
69 | /** |
||
70 | * Optional. Title of the audio as defined by sender or by audio tags |
||
71 | * |
||
72 | * @var string |
||
73 | */ |
||
74 | protected $title; |
||
75 | |||
76 | /** |
||
77 | * Optional. MIME type of the file as defined by sender |
||
78 | * |
||
79 | * @var string |
||
80 | */ |
||
81 | protected $mimeType; |
||
82 | |||
83 | /** |
||
84 | * Optional. File size |
||
85 | * |
||
86 | * @var int |
||
87 | */ |
||
88 | protected $fileSize; |
||
89 | |||
90 | /** |
||
91 | * @return string |
||
92 | */ |
||
93 | 1 | public function getFileId() |
|
97 | |||
98 | /** |
||
99 | * @param string $fileId |
||
100 | */ |
||
101 | 5 | public function setFileId($fileId) |
|
105 | |||
106 | /** |
||
107 | * @return string |
||
108 | */ |
||
109 | public function getFileUniqueId() |
||
113 | |||
114 | /** |
||
115 | * @param string $fileId |
||
|
|||
116 | */ |
||
117 | public function setFileUniqueId($fileUniqueId) |
||
121 | |||
122 | /** |
||
123 | * @return int |
||
124 | */ |
||
125 | 1 | public function getDuration() |
|
129 | |||
130 | /** |
||
131 | * @param int $duration |
||
132 | * |
||
133 | * @throws InvalidArgumentException |
||
134 | */ |
||
135 | 6 | public function setDuration($duration) |
|
143 | |||
144 | /** |
||
145 | * @return string |
||
146 | */ |
||
147 | 1 | public function getPerformer() |
|
151 | |||
152 | /** |
||
153 | * @param string $performer |
||
154 | */ |
||
155 | 3 | public function setPerformer($performer) |
|
159 | |||
160 | /** |
||
161 | * @return string |
||
162 | */ |
||
163 | 1 | public function getTitle() |
|
167 | |||
168 | /** |
||
169 | * @param string $title |
||
170 | */ |
||
171 | 3 | public function setTitle($title) |
|
175 | |||
176 | /** |
||
177 | * @return int |
||
178 | */ |
||
179 | 1 | public function getFileSize() |
|
183 | |||
184 | /** |
||
185 | * @param int $fileSize |
||
186 | * |
||
187 | * @throws InvalidArgumentException |
||
188 | */ |
||
189 | 6 | public function setFileSize($fileSize) |
|
197 | |||
198 | /** |
||
199 | * @return string |
||
200 | */ |
||
201 | 1 | public function getMimeType() |
|
205 | |||
206 | /** |
||
207 | * @param string $mimeType |
||
208 | */ |
||
209 | 5 | public function setMimeType($mimeType) |
|
213 | } |
||
214 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.