1 | <?php |
||
20 | final class GoogleAddress extends Address |
||
21 | { |
||
22 | /** |
||
23 | * @var string|null |
||
24 | */ |
||
25 | private $id; |
||
26 | |||
27 | /** |
||
28 | * @var string|null |
||
29 | */ |
||
30 | private $locationType; |
||
31 | |||
32 | /** |
||
33 | * @var array |
||
34 | */ |
||
35 | private $resultType = []; |
||
36 | |||
37 | /** |
||
38 | * @var string|null |
||
39 | */ |
||
40 | private $formattedAddress; |
||
41 | |||
42 | /** |
||
43 | * @var string|null |
||
44 | */ |
||
45 | private $streetAddress; |
||
46 | |||
47 | /** |
||
48 | * @var string|null |
||
49 | */ |
||
50 | private $intersection; |
||
51 | |||
52 | /** |
||
53 | * @var string|null |
||
54 | */ |
||
55 | private $political; |
||
56 | |||
57 | /** |
||
58 | * @var string|null |
||
59 | */ |
||
60 | private $colloquialArea; |
||
61 | |||
62 | /** |
||
63 | * @var string|null |
||
64 | */ |
||
65 | private $ward; |
||
66 | |||
67 | /** |
||
68 | * @var string|null |
||
69 | */ |
||
70 | private $neighborhood; |
||
71 | |||
72 | /** |
||
73 | * @var string|null |
||
74 | */ |
||
75 | private $premise; |
||
76 | |||
77 | /** |
||
78 | * @var string|null |
||
79 | */ |
||
80 | private $subpremise; |
||
81 | |||
82 | /** |
||
83 | * @var string|null |
||
84 | */ |
||
85 | private $naturalFeature; |
||
86 | |||
87 | /** |
||
88 | * @var string|null |
||
89 | */ |
||
90 | private $airport; |
||
91 | |||
92 | /** |
||
93 | * @var string|null |
||
94 | */ |
||
95 | private $park; |
||
96 | |||
97 | /** |
||
98 | * @var string|null |
||
99 | */ |
||
100 | private $pointOfInterest; |
||
101 | |||
102 | /** |
||
103 | * @var string|null |
||
104 | */ |
||
105 | private $establishment; |
||
106 | |||
107 | /** |
||
108 | * @param null|string $id |
||
109 | * |
||
110 | * @return GoogleAddress |
||
111 | */ |
||
112 | 15 | public function withId(string $id = null) |
|
119 | |||
120 | /** |
||
121 | * @see https://developers.google.com/places/place-id |
||
122 | * |
||
123 | * @return null|string |
||
124 | */ |
||
125 | 3 | public function getId() |
|
129 | |||
130 | /** |
||
131 | * @param null|string $locationType |
||
132 | * |
||
133 | * @return GoogleAddress |
||
134 | */ |
||
135 | 15 | public function withLocationType(string $locationType = null) |
|
142 | |||
143 | /** |
||
144 | * @return null|string |
||
145 | */ |
||
146 | public function getLocationType() |
||
150 | |||
151 | /** |
||
152 | * @return array |
||
153 | */ |
||
154 | public function getResultType(): array |
||
158 | |||
159 | /** |
||
160 | * @param array $resultType |
||
161 | * |
||
162 | * @return GoogleAddress |
||
163 | */ |
||
164 | 15 | public function withResultType(array $resultType) |
|
171 | |||
172 | /** |
||
173 | * @return null|string |
||
174 | */ |
||
175 | public function getFormattedAddress() |
||
179 | |||
180 | /** |
||
181 | * @param string|null $formattedAddress |
||
182 | * |
||
183 | * @return GoogleAddress |
||
184 | */ |
||
185 | 15 | public function withFormattedAddress(string $formattedAddress = null) |
|
192 | |||
193 | /** |
||
194 | * @return null|string |
||
195 | */ |
||
196 | 1 | public function getAirport() |
|
200 | |||
201 | /** |
||
202 | * @param string|null $airport |
||
203 | * |
||
204 | * @return GoogleAddress |
||
205 | */ |
||
206 | 15 | public function withAirport(string $airport = null) |
|
213 | |||
214 | /** |
||
215 | * @return null|string |
||
216 | */ |
||
217 | 1 | public function getColloquialArea() |
|
221 | |||
222 | /** |
||
223 | * @param string|null $colloquialArea |
||
224 | * |
||
225 | * @return GoogleAddress |
||
226 | */ |
||
227 | 15 | public function withColloquialArea(string $colloquialArea = null) |
|
234 | |||
235 | /** |
||
236 | * @return null|string |
||
237 | */ |
||
238 | public function getIntersection() |
||
242 | |||
243 | /** |
||
244 | * @param string|null $intersection |
||
245 | * |
||
246 | * @return GoogleAddress |
||
247 | */ |
||
248 | 15 | public function withIntersection(string $intersection = null) |
|
255 | |||
256 | /** |
||
257 | * @return null|string |
||
258 | */ |
||
259 | 1 | public function getNaturalFeature() |
|
263 | |||
264 | /** |
||
265 | * @param string|null $naturalFeature |
||
266 | * |
||
267 | * @return GoogleAddress |
||
268 | */ |
||
269 | 15 | public function withNaturalFeature(string $naturalFeature = null) |
|
276 | |||
277 | /** |
||
278 | * @return null|string |
||
279 | */ |
||
280 | 1 | public function getNeighborhood() |
|
284 | |||
285 | /** |
||
286 | * @param string|null $neighborhood |
||
287 | * |
||
288 | * @return GoogleAddress |
||
289 | */ |
||
290 | 15 | public function withNeighborhood(string $neighborhood = null) |
|
297 | |||
298 | /** |
||
299 | * @return null|string |
||
300 | */ |
||
301 | 1 | public function getPark() |
|
305 | |||
306 | /** |
||
307 | * @param string|null $park |
||
308 | * |
||
309 | * @return GoogleAddress |
||
310 | */ |
||
311 | 15 | public function withPark(string $park = null) |
|
318 | |||
319 | /** |
||
320 | * @return null|string |
||
321 | */ |
||
322 | 2 | public function getPointOfInterest() |
|
326 | |||
327 | /** |
||
328 | * @param string|null $pointOfInterest |
||
329 | * |
||
330 | * @return GoogleAddress |
||
331 | */ |
||
332 | 15 | public function withPointOfInterest(string $pointOfInterest = null) |
|
339 | |||
340 | /** |
||
341 | * @return null|string |
||
342 | */ |
||
343 | 1 | public function getPolitical() |
|
347 | |||
348 | /** |
||
349 | * @param string|null $political |
||
350 | * |
||
351 | * @return GoogleAddress |
||
352 | */ |
||
353 | 15 | public function withPolitical(string $political = null) |
|
360 | |||
361 | /** |
||
362 | * @return null|string |
||
363 | */ |
||
364 | 1 | public function getPremise() |
|
368 | |||
369 | /** |
||
370 | * @param null $premise |
||
371 | * |
||
372 | * @return GoogleAddress |
||
373 | */ |
||
374 | 15 | public function withPremise(string $premise = null) |
|
381 | |||
382 | /** |
||
383 | * @return null|string |
||
384 | */ |
||
385 | public function getStreetAddress() |
||
389 | |||
390 | /** |
||
391 | * @param string|null $streetAddress |
||
392 | * |
||
393 | * @return GoogleAddress |
||
394 | */ |
||
395 | 15 | public function withStreetAddress(string $streetAddress = null) |
|
402 | |||
403 | /** |
||
404 | * @return null|string |
||
405 | */ |
||
406 | 1 | public function getSubpremise() |
|
410 | |||
411 | /** |
||
412 | * @param string|null $subpremise |
||
413 | * |
||
414 | * @return GoogleAddress |
||
415 | */ |
||
416 | 15 | public function withSubpremise(string $subpremise = null) |
|
423 | |||
424 | /** |
||
425 | * @return null|string |
||
426 | */ |
||
427 | 1 | public function getWard() |
|
431 | |||
432 | /** |
||
433 | * @param string|null $ward |
||
434 | * |
||
435 | * @return GoogleAddress |
||
436 | */ |
||
437 | 15 | public function withWard(string $ward = null) |
|
444 | |||
445 | /** |
||
446 | * @return null|string |
||
447 | */ |
||
448 | 1 | public function getEstablishment() |
|
452 | |||
453 | /** |
||
454 | * @param string|null $establishment |
||
455 | * |
||
456 | * @return GoogleAddress |
||
457 | */ |
||
458 | 15 | public function withEstablishment(string $establishment = null) |
|
465 | } |
||
466 |