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 | private $type; |
||
56 | |||
57 | /** |
||
58 | * @return string|null |
||
59 | */ |
||
60 | 4 | public function getAttribution() |
|
64 | |||
65 | /** |
||
66 | * @param string|null $attribution |
||
67 | * |
||
68 | * @return NominatimAddress |
||
69 | */ |
||
70 | 9 | 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 | /** |
||
101 | * @return string|null |
||
102 | */ |
||
103 | 4 | public function getCategory() |
|
107 | |||
108 | /** |
||
109 | * @param string|null $category |
||
110 | * |
||
111 | * @return NominatimAddress |
||
112 | */ |
||
113 | 7 | public function withCategory(string $category = null): self |
|
120 | |||
121 | /** |
||
122 | * @return string|null |
||
123 | */ |
||
124 | 3 | public function getDisplayName() |
|
128 | |||
129 | /** |
||
130 | * @param string|null $displayName |
||
131 | * |
||
132 | * @return NominatimAddress |
||
133 | */ |
||
134 | 9 | public function withDisplayName(string $displayName = null): self |
|
141 | |||
142 | /** |
||
143 | * @return int|null |
||
144 | */ |
||
145 | 4 | public function getOSMId() |
|
149 | |||
150 | /** |
||
151 | * @param int|null $osmId |
||
152 | * |
||
153 | * @return NominatimAddress |
||
154 | */ |
||
155 | 8 | public function withOSMId(int $osmId = null): self |
|
162 | |||
163 | /** |
||
164 | * @return string|null |
||
165 | */ |
||
166 | 4 | public function getOSMType() |
|
170 | |||
171 | /** |
||
172 | * @param string|null $osmType |
||
173 | * |
||
174 | * @return NominatimAddress |
||
175 | */ |
||
176 | 8 | public function withOSMType(string $osmType = null): self |
|
183 | |||
184 | /** |
||
185 | * @return string|null |
||
186 | */ |
||
187 | 3 | public function getType() |
|
191 | |||
192 | /** |
||
193 | * @param string|null $type |
||
194 | * |
||
195 | * @return NominatimAddress |
||
196 | */ |
||
197 | 7 | public function withType(string $type = null): self |
|
204 | |||
205 | /** |
||
206 | * @return string|null |
||
207 | */ |
||
208 | 1 | public function getQuarter(): ?string |
|
212 | |||
213 | /** |
||
214 | * @param string|null $quarter |
||
215 | * |
||
216 | * @return NominatimAddress |
||
217 | */ |
||
218 | 1 | public function withQuarter(string $quarter = null): self |
|
225 | } |
||
226 |