1 | <?php |
||
22 | final class GoogleAddress extends Address |
||
23 | { |
||
24 | /** |
||
25 | * @var string|null |
||
26 | */ |
||
27 | private $id; |
||
28 | |||
29 | /** |
||
30 | * @var string|null |
||
31 | */ |
||
32 | private $locationType; |
||
33 | |||
34 | /** |
||
35 | * @var array |
||
36 | */ |
||
37 | private $resultType = []; |
||
38 | |||
39 | /** |
||
40 | * @var string|null |
||
41 | */ |
||
42 | private $formattedAddress; |
||
43 | |||
44 | /** |
||
45 | * @var string|null |
||
46 | */ |
||
47 | private $streetAddress; |
||
48 | |||
49 | /** |
||
50 | * @var string|null |
||
51 | */ |
||
52 | private $intersection; |
||
53 | |||
54 | /** |
||
55 | * @var string|null |
||
56 | */ |
||
57 | private $political; |
||
58 | |||
59 | /** |
||
60 | * @var string|null |
||
61 | */ |
||
62 | private $colloquialArea; |
||
63 | |||
64 | /** |
||
65 | * @var string|null |
||
66 | */ |
||
67 | private $ward; |
||
68 | |||
69 | /** |
||
70 | * @var string|null |
||
71 | */ |
||
72 | private $neighborhood; |
||
73 | |||
74 | /** |
||
75 | * @var string|null |
||
76 | */ |
||
77 | private $premise; |
||
78 | |||
79 | /** |
||
80 | * @var string|null |
||
81 | */ |
||
82 | private $subpremise; |
||
83 | |||
84 | /** |
||
85 | * @var string|null |
||
86 | */ |
||
87 | private $naturalFeature; |
||
88 | |||
89 | /** |
||
90 | * @var string|null |
||
91 | */ |
||
92 | private $airport; |
||
93 | |||
94 | /** |
||
95 | * @var string|null |
||
96 | */ |
||
97 | private $park; |
||
98 | |||
99 | /** |
||
100 | * @var string|null |
||
101 | */ |
||
102 | private $pointOfInterest; |
||
103 | |||
104 | /** |
||
105 | * @var string|null |
||
106 | */ |
||
107 | private $establishment; |
||
108 | |||
109 | /** |
||
110 | * @var AdminLevelCollection |
||
111 | */ |
||
112 | private $subLocalityLevels; |
||
113 | |||
114 | /** |
||
115 | * @param null|string $id |
||
116 | * |
||
117 | * @return GoogleAddress |
||
118 | */ |
||
119 | 16 | public function withId(string $id = null) |
|
126 | |||
127 | /** |
||
128 | * @see https://developers.google.com/places/place-id |
||
129 | * |
||
130 | * @return null|string |
||
131 | */ |
||
132 | 3 | public function getId() |
|
136 | |||
137 | /** |
||
138 | * @param null|string $locationType |
||
139 | * |
||
140 | * @return GoogleAddress |
||
141 | */ |
||
142 | 16 | public function withLocationType(string $locationType = null) |
|
149 | |||
150 | /** |
||
151 | * @return null|string |
||
152 | */ |
||
153 | public function getLocationType() |
||
157 | |||
158 | /** |
||
159 | * @return array |
||
160 | */ |
||
161 | public function getResultType(): array |
||
165 | |||
166 | /** |
||
167 | * @param array $resultType |
||
168 | * |
||
169 | * @return GoogleAddress |
||
170 | */ |
||
171 | 16 | public function withResultType(array $resultType) |
|
178 | |||
179 | /** |
||
180 | * @return null|string |
||
181 | */ |
||
182 | public function getFormattedAddress() |
||
186 | |||
187 | /** |
||
188 | * @param string|null $formattedAddress |
||
189 | * |
||
190 | * @return GoogleAddress |
||
191 | */ |
||
192 | 16 | public function withFormattedAddress(string $formattedAddress = null) |
|
199 | |||
200 | /** |
||
201 | * @return null|string |
||
202 | */ |
||
203 | 1 | public function getAirport() |
|
207 | |||
208 | /** |
||
209 | * @param string|null $airport |
||
210 | * |
||
211 | * @return GoogleAddress |
||
212 | */ |
||
213 | 16 | public function withAirport(string $airport = null) |
|
220 | |||
221 | /** |
||
222 | * @return null|string |
||
223 | */ |
||
224 | 1 | public function getColloquialArea() |
|
228 | |||
229 | /** |
||
230 | * @param string|null $colloquialArea |
||
231 | * |
||
232 | * @return GoogleAddress |
||
233 | */ |
||
234 | 16 | public function withColloquialArea(string $colloquialArea = null) |
|
241 | |||
242 | /** |
||
243 | * @return null|string |
||
244 | */ |
||
245 | public function getIntersection() |
||
249 | |||
250 | /** |
||
251 | * @param string|null $intersection |
||
252 | * |
||
253 | * @return GoogleAddress |
||
254 | */ |
||
255 | 16 | public function withIntersection(string $intersection = null) |
|
262 | |||
263 | /** |
||
264 | * @return null|string |
||
265 | */ |
||
266 | 1 | public function getNaturalFeature() |
|
270 | |||
271 | /** |
||
272 | * @param string|null $naturalFeature |
||
273 | * |
||
274 | * @return GoogleAddress |
||
275 | */ |
||
276 | 16 | public function withNaturalFeature(string $naturalFeature = null) |
|
283 | |||
284 | /** |
||
285 | * @return null|string |
||
286 | */ |
||
287 | 1 | public function getNeighborhood() |
|
291 | |||
292 | /** |
||
293 | * @param string|null $neighborhood |
||
294 | * |
||
295 | * @return GoogleAddress |
||
296 | */ |
||
297 | 16 | public function withNeighborhood(string $neighborhood = null) |
|
304 | |||
305 | /** |
||
306 | * @return null|string |
||
307 | */ |
||
308 | 1 | public function getPark() |
|
312 | |||
313 | /** |
||
314 | * @param string|null $park |
||
315 | * |
||
316 | * @return GoogleAddress |
||
317 | */ |
||
318 | 16 | public function withPark(string $park = null) |
|
325 | |||
326 | /** |
||
327 | * @return null|string |
||
328 | */ |
||
329 | 2 | public function getPointOfInterest() |
|
333 | |||
334 | /** |
||
335 | * @param string|null $pointOfInterest |
||
336 | * |
||
337 | * @return GoogleAddress |
||
338 | */ |
||
339 | 16 | public function withPointOfInterest(string $pointOfInterest = null) |
|
346 | |||
347 | /** |
||
348 | * @return null|string |
||
349 | */ |
||
350 | 1 | public function getPolitical() |
|
354 | |||
355 | /** |
||
356 | * @param string|null $political |
||
357 | * |
||
358 | * @return GoogleAddress |
||
359 | */ |
||
360 | 16 | public function withPolitical(string $political = null) |
|
367 | |||
368 | /** |
||
369 | * @return null|string |
||
370 | */ |
||
371 | 1 | public function getPremise() |
|
375 | |||
376 | /** |
||
377 | * @param null $premise |
||
378 | * |
||
379 | * @return GoogleAddress |
||
380 | */ |
||
381 | 16 | public function withPremise(string $premise = null) |
|
388 | |||
389 | /** |
||
390 | * @return null|string |
||
391 | */ |
||
392 | public function getStreetAddress() |
||
396 | |||
397 | /** |
||
398 | * @param string|null $streetAddress |
||
399 | * |
||
400 | * @return GoogleAddress |
||
401 | */ |
||
402 | 16 | public function withStreetAddress(string $streetAddress = null) |
|
409 | |||
410 | /** |
||
411 | * @return null|string |
||
412 | */ |
||
413 | 1 | public function getSubpremise() |
|
417 | |||
418 | /** |
||
419 | * @param string|null $subpremise |
||
420 | * |
||
421 | * @return GoogleAddress |
||
422 | */ |
||
423 | 16 | public function withSubpremise(string $subpremise = null) |
|
430 | |||
431 | /** |
||
432 | * @return null|string |
||
433 | */ |
||
434 | 1 | public function getWard() |
|
438 | |||
439 | /** |
||
440 | * @param string|null $ward |
||
441 | * |
||
442 | * @return GoogleAddress |
||
443 | */ |
||
444 | 16 | public function withWard(string $ward = null) |
|
451 | |||
452 | /** |
||
453 | * @return null|string |
||
454 | */ |
||
455 | 1 | public function getEstablishment() |
|
459 | |||
460 | /** |
||
461 | * @param string|null $establishment |
||
462 | * |
||
463 | * @return GoogleAddress |
||
464 | */ |
||
465 | 16 | public function withEstablishment(string $establishment = null) |
|
472 | |||
473 | /** |
||
474 | * @return AdminLevelCollection |
||
475 | */ |
||
476 | 1 | public function getSubLocalityLevels() |
|
480 | |||
481 | /** |
||
482 | * @param array $subLocalityLevel |
||
483 | * |
||
484 | * @return $this |
||
485 | */ |
||
486 | 16 | public function withSubLocalityLevels(array $subLocalityLevel) |
|
507 | } |
||
508 |