1 | <?php |
||
15 | class Sticker extends BaseType implements TypeInterface |
||
16 | { |
||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | * |
||
20 | * @var array |
||
21 | */ |
||
22 | static protected $requiredParams = ['file_id', 'width', 'height']; |
||
23 | |||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | * |
||
27 | * @var array |
||
28 | */ |
||
29 | static protected $map = [ |
||
30 | 'file_id' => true, |
||
31 | 'width' => true, |
||
32 | 'height' => true, |
||
33 | 'thumb' => PhotoSize::class, |
||
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 | * Sticker width |
||
55 | * |
||
56 | * @var int |
||
57 | */ |
||
58 | protected $width; |
||
59 | |||
60 | /** |
||
61 | * Sticker height |
||
62 | * |
||
63 | * @var int |
||
64 | */ |
||
65 | protected $height; |
||
66 | |||
67 | /** |
||
68 | * Document thumbnail as defined by sender |
||
69 | * |
||
70 | * @var PhotoSize |
||
71 | */ |
||
72 | protected $thumb; |
||
73 | |||
74 | /** |
||
75 | * Optional. File size |
||
76 | * |
||
77 | * @var int |
||
78 | */ |
||
79 | protected $fileSize; |
||
80 | |||
81 | /** |
||
82 | * @return string |
||
83 | */ |
||
84 | 1 | public function getFileId() |
|
88 | |||
89 | /** |
||
90 | * @param string $fileId |
||
91 | */ |
||
92 | 5 | public function setFileId($fileId) |
|
96 | |||
97 | /** |
||
98 | * @return string |
||
99 | */ |
||
100 | public function getFileUniqueId() |
||
104 | |||
105 | /** |
||
106 | * @param string $fileId |
||
|
|||
107 | */ |
||
108 | public function setFileUniqueId($fileUniqueId) |
||
112 | |||
113 | /** |
||
114 | * @return int |
||
115 | */ |
||
116 | 1 | public function getFileSize() |
|
120 | |||
121 | /** |
||
122 | * @param int $fileSize |
||
123 | * |
||
124 | * @throws InvalidArgumentException |
||
125 | */ |
||
126 | 6 | public function setFileSize($fileSize) |
|
134 | |||
135 | /** |
||
136 | * @return int |
||
137 | */ |
||
138 | 1 | public function getHeight() |
|
142 | |||
143 | /** |
||
144 | * @param int $height |
||
145 | * |
||
146 | * @throws InvalidArgumentException |
||
147 | */ |
||
148 | 6 | public function setHeight($height) |
|
156 | |||
157 | /** |
||
158 | * @return PhotoSize |
||
159 | */ |
||
160 | 1 | public function getThumb() |
|
164 | |||
165 | /** |
||
166 | * @param PhotoSize $thumb |
||
167 | */ |
||
168 | 5 | public function setThumb(PhotoSize $thumb) |
|
172 | |||
173 | /** |
||
174 | * @return int |
||
175 | */ |
||
176 | 1 | public function getWidth() |
|
180 | |||
181 | /** |
||
182 | * @param int $width |
||
183 | * |
||
184 | * @throws InvalidArgumentException |
||
185 | */ |
||
186 | 6 | public function setWidth($width) |
|
194 | } |
||
195 |
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.