1 | <?php |
||
20 | final class NominatimAddress extends Address |
||
21 | { |
||
22 | /** |
||
23 | * @var string|null |
||
24 | */ |
||
25 | private $attribution; |
||
26 | |||
27 | /** |
||
28 | * @var string|null |
||
29 | */ |
||
30 | private $category; |
||
31 | |||
32 | /** |
||
33 | * @var string|null |
||
34 | */ |
||
35 | private $displayName; |
||
36 | |||
37 | /** |
||
38 | * @var string|null |
||
39 | */ |
||
40 | private $quarter; |
||
41 | |||
42 | /** |
||
43 | * @var string|null |
||
44 | */ |
||
45 | private $osmType; |
||
46 | |||
47 | /** |
||
48 | * @var int|null |
||
49 | */ |
||
50 | private $osmId; |
||
51 | |||
52 | /** |
||
53 | * @var string|null |
||
54 | */ |
||
55 | 4 | private $type; |
|
56 | |||
57 | 4 | /** |
|
58 | * @return string|null |
||
59 | */ |
||
60 | public function getAttribution() |
||
64 | |||
65 | 8 | /** |
|
66 | * @param string|null $attribution |
||
67 | 8 | * |
|
68 | 8 | * @return NominatimAddress |
|
69 | */ |
||
70 | 8 | public function withAttribution(string $attribution = null): self |
|
77 | |||
78 | /** |
||
79 | * @deprecated |
||
80 | * |
||
81 | * @return string|null |
||
82 | */ |
||
83 | public function getClass() |
||
87 | |||
88 | /** |
||
89 | * @deprecated |
||
90 | * |
||
91 | * @param string|null $category |
||
92 | * |
||
93 | * @return NominatimAddress |
||
94 | */ |
||
95 | public function withClass(string $category = null): self |
||
99 | |||
100 | 4 | /** |
|
101 | * @return string|null |
||
102 | */ |
||
103 | public function getCategory() |
||
107 | |||
108 | 6 | /** |
|
109 | * @param string|null $category |
||
110 | 6 | * |
|
111 | 6 | * @return NominatimAddress |
|
112 | */ |
||
113 | 6 | public function withCategory(string $category = null): self |
|
120 | |||
121 | 3 | /** |
|
122 | * @return string|null |
||
123 | */ |
||
124 | public function getDisplayName() |
||
128 | |||
129 | 8 | /** |
|
130 | * @param string|null $displayName |
||
131 | 8 | * |
|
132 | 8 | * @return NominatimAddress |
|
133 | */ |
||
134 | 8 | public function withDisplayName(string $displayName = null): self |
|
141 | |||
142 | 4 | /** |
|
143 | * @return int|null |
||
144 | */ |
||
145 | public function getOSMId() |
||
149 | |||
150 | 7 | /** |
|
151 | * @param int|null $osmId |
||
152 | 7 | * |
|
153 | 7 | * @return NominatimAddress |
|
154 | */ |
||
155 | 7 | public function withOSMId(int $osmId = null): self |
|
162 | |||
163 | 4 | /** |
|
164 | * @return string|null |
||
165 | */ |
||
166 | public function getOSMType() |
||
170 | |||
171 | 7 | /** |
|
172 | * @param string|null $osmType |
||
173 | 7 | * |
|
174 | 7 | * @return NominatimAddress |
|
175 | */ |
||
176 | 7 | public function withOSMType(string $osmType = null): self |
|
183 | |||
184 | 3 | /** |
|
185 | * @return string|null |
||
186 | */ |
||
187 | public function getType() |
||
191 | |||
192 | 6 | /** |
|
193 | * @param string|null $type |
||
194 | 6 | * |
|
195 | 6 | * @return NominatimAddress |
|
196 | */ |
||
197 | 6 | public function withType(string $type = null): self |
|
204 | |||
205 | /** |
||
206 | * @return string|null |
||
207 | */ |
||
208 | public function getQuarter(): ?string |
||
212 | |||
213 | /** |
||
214 | * @param string|null $quarter |
||
215 | * |
||
216 | * @return NominatimAddress |
||
217 | */ |
||
218 | public function withQuarter(string $quarter = null): self |
||
225 | } |
||
226 |