1 | <?php |
||
15 | class Voice 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 | 'mime_type' => true, |
||
34 | 'file_size' => true |
||
35 | ]; |
||
36 | |||
37 | /** |
||
38 | * Identifier for this file, which can be used to download or reuse the file |
||
39 | * |
||
40 | * @var string |
||
41 | */ |
||
42 | protected $fileId; |
||
43 | |||
44 | /** |
||
45 | * Unique identifier for this file, which is supposed |
||
46 | * to be thesame over time and for different bots. |
||
47 | * Can't be used to download or reuse the file. |
||
48 | * |
||
49 | * @var string |
||
50 | */ |
||
51 | protected $fileUniqueId; |
||
52 | |||
53 | /** |
||
54 | * Duration of the audio in seconds as defined by sender |
||
55 | * |
||
56 | * @var int |
||
57 | */ |
||
58 | protected $duration; |
||
59 | |||
60 | /** |
||
61 | * Optional. MIME type of the file as defined by sender |
||
62 | * |
||
63 | * @var string |
||
64 | */ |
||
65 | protected $mimeType; |
||
66 | |||
67 | /** |
||
68 | * Optional. File size |
||
69 | * |
||
70 | * @var int |
||
71 | */ |
||
72 | protected $fileSize; |
||
73 | |||
74 | /** |
||
75 | * @return string |
||
76 | */ |
||
77 | 1 | public function getFileId() |
|
81 | |||
82 | /** |
||
83 | * @param string $fileId |
||
84 | */ |
||
85 | 5 | public function setFileId($fileId) |
|
89 | |||
90 | /** |
||
91 | * @return string |
||
92 | */ |
||
93 | public function getFileUniqueId() |
||
97 | |||
98 | /** |
||
99 | * @param string $fileId |
||
|
|||
100 | */ |
||
101 | public function setFileUniqueId($fileUniqueId) |
||
105 | |||
106 | /** |
||
107 | * @return int |
||
108 | */ |
||
109 | 1 | public function getDuration() |
|
113 | |||
114 | /** |
||
115 | * @param int $duration |
||
116 | * |
||
117 | * @throws InvalidArgumentException |
||
118 | */ |
||
119 | 6 | public function setDuration($duration) |
|
127 | |||
128 | /** |
||
129 | * @return string |
||
130 | */ |
||
131 | 1 | public function getMimeType() |
|
135 | |||
136 | /** |
||
137 | * @param string $mimeType |
||
138 | */ |
||
139 | 5 | public function setMimeType($mimeType) |
|
143 | |||
144 | /** |
||
145 | * @return int |
||
146 | */ |
||
147 | 1 | public function getFileSize() |
|
151 | |||
152 | /** |
||
153 | * @param int $fileSize |
||
154 | * |
||
155 | * @throws InvalidArgumentException |
||
156 | */ |
||
157 | 6 | public function setFileSize($fileSize) |
|
165 | } |
||
166 |
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.