1 | <?php |
||
20 | final class GoogleAddress extends Address |
||
21 | { |
||
22 | /** |
||
23 | * @var string|null |
||
24 | */ |
||
25 | private $locationType; |
||
26 | |||
27 | /** |
||
28 | * @var array |
||
29 | */ |
||
30 | private $resultType = []; |
||
31 | |||
32 | /** |
||
33 | * @var string|null |
||
34 | */ |
||
35 | private $formattedAddress; |
||
36 | |||
37 | /** |
||
38 | * @var string|null |
||
39 | */ |
||
40 | private $streetAddress; |
||
41 | |||
42 | /** |
||
43 | * @var string|null |
||
44 | */ |
||
45 | private $intersection; |
||
46 | |||
47 | /** |
||
48 | * @var string|null |
||
49 | */ |
||
50 | private $political; |
||
51 | |||
52 | /** |
||
53 | * @var string|null |
||
54 | */ |
||
55 | private $colloquialArea; |
||
56 | |||
57 | /** |
||
58 | * @var string|null |
||
59 | */ |
||
60 | private $ward; |
||
61 | |||
62 | /** |
||
63 | * @var string|null |
||
64 | */ |
||
65 | private $neighborhood; |
||
66 | |||
67 | /** |
||
68 | * @var string|null |
||
69 | */ |
||
70 | private $premise; |
||
71 | |||
72 | /** |
||
73 | * @var string|null |
||
74 | */ |
||
75 | private $subpremise; |
||
76 | |||
77 | /** |
||
78 | * @var string|null |
||
79 | */ |
||
80 | private $naturalFeature; |
||
81 | |||
82 | /** |
||
83 | * @var string|null |
||
84 | */ |
||
85 | private $airport; |
||
86 | |||
87 | /** |
||
88 | * @var string|null |
||
89 | */ |
||
90 | private $park; |
||
91 | |||
92 | /** |
||
93 | * @var string|null |
||
94 | */ |
||
95 | private $pointOfInterest; |
||
96 | |||
97 | /** |
||
98 | * @var string|null |
||
99 | */ |
||
100 | private $establishment; |
||
101 | |||
102 | /** |
||
103 | * @param null|string $locationType |
||
104 | * |
||
105 | * @return GoogleAddress |
||
106 | */ |
||
107 | 15 | public function withLocationType(string $locationType = null) |
|
114 | |||
115 | /** |
||
116 | * @return null|string |
||
117 | */ |
||
118 | public function getLocationType() |
||
122 | |||
123 | /** |
||
124 | * @return array |
||
125 | */ |
||
126 | public function getResultType(): array |
||
130 | |||
131 | /** |
||
132 | * @param array $resultType |
||
133 | * |
||
134 | * @return GoogleAddress |
||
135 | */ |
||
136 | 15 | public function withResultType(array $resultType) |
|
143 | |||
144 | /** |
||
145 | * @return null|string |
||
146 | */ |
||
147 | public function getFormattedAddress() |
||
151 | |||
152 | /** |
||
153 | * @param null|string $formattedAddress |
||
154 | */ |
||
155 | 15 | public function withFormattedAddress(string $formattedAddress = null) |
|
162 | |||
163 | /** |
||
164 | * @return null|string |
||
165 | */ |
||
166 | 1 | public function getAirport() |
|
170 | |||
171 | /** |
||
172 | * @param null|string $airport |
||
173 | */ |
||
174 | 15 | public function withAirport(string $airport = null) |
|
181 | |||
182 | /** |
||
183 | * @return null|string |
||
184 | */ |
||
185 | 1 | public function getColloquialArea() |
|
189 | |||
190 | /** |
||
191 | * @param null|string $colloquialArea |
||
192 | */ |
||
193 | 15 | public function withColloquialArea(string $colloquialArea = null) |
|
200 | |||
201 | /** |
||
202 | * @return null|string |
||
203 | */ |
||
204 | public function getIntersection() |
||
208 | |||
209 | /** |
||
210 | * @param null|string $intersection |
||
211 | */ |
||
212 | 15 | public function withIntersection(string $intersection = null) |
|
219 | |||
220 | /** |
||
221 | * @return null|string |
||
222 | */ |
||
223 | 1 | public function getNaturalFeature() |
|
227 | |||
228 | /** |
||
229 | * @param null|string $naturalFeature |
||
230 | */ |
||
231 | 15 | public function withNaturalFeature(string $naturalFeature = null) |
|
238 | |||
239 | /** |
||
240 | * @return null|string |
||
241 | */ |
||
242 | 1 | public function getNeighborhood() |
|
246 | |||
247 | /** |
||
248 | * @param null|string $neighborhood |
||
249 | */ |
||
250 | 15 | public function withNeighborhood(string $neighborhood = null) |
|
257 | |||
258 | /** |
||
259 | * @return null|string |
||
260 | */ |
||
261 | 1 | public function getPark() |
|
265 | |||
266 | /** |
||
267 | * @param null|string $park |
||
268 | */ |
||
269 | 15 | public function withPark(string $park = null) |
|
276 | |||
277 | /** |
||
278 | * @return null|string |
||
279 | */ |
||
280 | 2 | public function getPointOfInterest() |
|
284 | |||
285 | /** |
||
286 | * @param null|string $pointOfInterest |
||
287 | */ |
||
288 | 15 | public function withPointOfInterest(string $pointOfInterest = null) |
|
295 | |||
296 | /** |
||
297 | * @return null|string |
||
298 | */ |
||
299 | 1 | public function getPolitical() |
|
303 | |||
304 | /** |
||
305 | * @param null|string $political |
||
306 | */ |
||
307 | 15 | public function withPolitical(string $political = null) |
|
314 | |||
315 | /** |
||
316 | * @return null|string |
||
317 | */ |
||
318 | 1 | public function getPremise() |
|
322 | |||
323 | /** |
||
324 | * @param null|string $premise |
||
325 | */ |
||
326 | 15 | public function withPremise($premise = null) |
|
333 | |||
334 | /** |
||
335 | * @return null|string |
||
336 | */ |
||
337 | public function getStreetAddress() |
||
341 | |||
342 | /** |
||
343 | * @param null|string $streetAddress |
||
344 | */ |
||
345 | 15 | public function withStreetAddress(string $streetAddress = null) |
|
352 | |||
353 | /** |
||
354 | * @return null|string |
||
355 | */ |
||
356 | 1 | public function getSubpremise() |
|
360 | |||
361 | /** |
||
362 | * @param null|string $subpremise |
||
363 | */ |
||
364 | 15 | public function withSubpremise(string $subpremise = null) |
|
371 | |||
372 | /** |
||
373 | * @return null|string |
||
374 | */ |
||
375 | 1 | public function getWard() |
|
379 | |||
380 | /** |
||
381 | * @param null|string $ward |
||
382 | */ |
||
383 | 15 | public function withWard(string $ward = null) |
|
390 | |||
391 | /** |
||
392 | * @return null|string |
||
393 | */ |
||
394 | 1 | public function getEstablishment() |
|
398 | |||
399 | /** |
||
400 | * @param null|string $ward |
||
|
|||
401 | */ |
||
402 | 15 | public function withEstablishment(string $establishment = null) |
|
409 | } |
||
410 |
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.