1 | <?php |
||
16 | class Document extends BaseType implements TypeInterface |
||
17 | { |
||
18 | |||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | * |
||
22 | * @var array |
||
23 | */ |
||
24 | static protected $requiredParams = ['file_id']; |
||
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | * |
||
29 | * @var array |
||
30 | */ |
||
31 | static protected $map = [ |
||
32 | 'file_id' => true, |
||
33 | 'file_unique_id' => true, |
||
34 | 'thumb' => PhotoSize::class, |
||
35 | 'file_name' => true, |
||
36 | 'mime_type' => true, |
||
37 | 'file_size' => true |
||
38 | ]; |
||
39 | |||
40 | /** |
||
41 | * Identifier for this file, which can be used to download or reuse the file |
||
42 | * |
||
43 | * @var string |
||
44 | */ |
||
45 | protected $fileId; |
||
46 | |||
47 | /** |
||
48 | * Unique identifier for this file, which is supposed |
||
49 | * to be thesame over time and for different bots. |
||
50 | * Can't be used to download or reuse the file. |
||
51 | * |
||
52 | * @var string |
||
53 | */ |
||
54 | protected $fileUniqueId; |
||
55 | |||
56 | /** |
||
57 | * Document thumbnail as defined by sender |
||
58 | * |
||
59 | * @var PhotoSize |
||
60 | */ |
||
61 | protected $thumb; |
||
62 | |||
63 | /** |
||
64 | * Optional. Original filename as defined by sender |
||
65 | * |
||
66 | * @var string |
||
67 | */ |
||
68 | protected $fileName; |
||
69 | |||
70 | /** |
||
71 | * Optional. MIME type of the file as defined by sender |
||
72 | * |
||
73 | * @var string |
||
74 | */ |
||
75 | protected $mimeType; |
||
76 | |||
77 | /** |
||
78 | * Optional. File size |
||
79 | * |
||
80 | * @var int |
||
81 | */ |
||
82 | protected $fileSize; |
||
83 | |||
84 | /** |
||
85 | * @return string |
||
86 | */ |
||
87 | 1 | public function getFileId() |
|
91 | |||
92 | /** |
||
93 | * @param string $fileId |
||
94 | */ |
||
95 | 5 | public function setFileId($fileId) |
|
99 | |||
100 | /** |
||
101 | * @return string |
||
102 | */ |
||
103 | public function getFileUniqueId() |
||
107 | |||
108 | /** |
||
109 | * @param string $fileId |
||
|
|||
110 | */ |
||
111 | public function setFileUniqueId($fileUniqueId) |
||
115 | |||
116 | /** |
||
117 | * @return string |
||
118 | */ |
||
119 | 1 | public function getFileName() |
|
123 | |||
124 | /** |
||
125 | * @param string $fileName |
||
126 | */ |
||
127 | 5 | public function setFileName($fileName) |
|
131 | |||
132 | /** |
||
133 | * @return int |
||
134 | */ |
||
135 | 1 | public function getFileSize() |
|
139 | |||
140 | /** |
||
141 | * @param int $fileSize |
||
142 | * |
||
143 | * @throws InvalidArgumentException |
||
144 | */ |
||
145 | 6 | public function setFileSize($fileSize) |
|
153 | |||
154 | /** |
||
155 | * @return string |
||
156 | */ |
||
157 | 1 | public function getMimeType() |
|
161 | |||
162 | /** |
||
163 | * @param string $mimeType |
||
164 | */ |
||
165 | 5 | public function setMimeType($mimeType) |
|
169 | |||
170 | /** |
||
171 | * @return PhotoSize |
||
172 | */ |
||
173 | 2 | public function getThumb() |
|
177 | |||
178 | /** |
||
179 | * @param PhotoSize $thumb |
||
180 | */ |
||
181 | 5 | public function setThumb(PhotoSize $thumb) |
|
185 | } |
||
186 |
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.