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 $osmType; |
||
41 | |||
42 | /** |
||
43 | * @var int|null |
||
44 | */ |
||
45 | private $osmId; |
||
46 | |||
47 | /** |
||
48 | * @var string|null |
||
49 | */ |
||
50 | private $type; |
||
51 | |||
52 | /** |
||
53 | * @return null|string |
||
54 | */ |
||
55 | 2 | public function getAttribution() |
|
59 | |||
60 | /** |
||
61 | * @param null|string $attribution |
||
62 | * |
||
63 | * @return NominatimAddress |
||
64 | */ |
||
65 | 6 | public function withAttribution(string $attribution = null): self |
|
72 | |||
73 | /** |
||
74 | * @deprecated |
||
75 | * |
||
76 | * @return null|string |
||
77 | */ |
||
78 | public function getClass() |
||
82 | |||
83 | /** |
||
84 | * @deprecated |
||
85 | * |
||
86 | * @param null|string $category |
||
87 | * |
||
88 | * @return NominatimAddress |
||
89 | */ |
||
90 | public function withClass(string $category = null): self |
||
94 | |||
95 | /** |
||
96 | * @return null|string |
||
97 | */ |
||
98 | 2 | public function getCategory() |
|
102 | |||
103 | /** |
||
104 | * @param null|string $category |
||
105 | * |
||
106 | * @return NominatimAddress |
||
107 | */ |
||
108 | 4 | public function withCategory(string $category = null): self |
|
115 | |||
116 | /** |
||
117 | * @return null|string |
||
118 | */ |
||
119 | 2 | public function getDisplayName() |
|
123 | |||
124 | /** |
||
125 | * @param null|string $displayName |
||
126 | * |
||
127 | * @return NominatimAddress |
||
128 | */ |
||
129 | 6 | public function withDisplayName(string $displayName = null): self |
|
136 | |||
137 | /** |
||
138 | * @return null|int |
||
139 | */ |
||
140 | 2 | public function getOSMId() |
|
144 | |||
145 | /** |
||
146 | * @param null|int $osmId |
||
147 | * |
||
148 | * @return NominatimAddress |
||
149 | */ |
||
150 | 6 | public function withOSMId(int $osmId = null): self |
|
157 | |||
158 | /** |
||
159 | * @return null|string |
||
160 | */ |
||
161 | 2 | public function getOSMType() |
|
165 | |||
166 | /** |
||
167 | * @param null|string $osmType |
||
168 | * |
||
169 | * @return NominatimAddress |
||
170 | */ |
||
171 | 6 | public function withOSMType(string $osmType = null): self |
|
178 | |||
179 | /** |
||
180 | * @return null|string |
||
181 | */ |
||
182 | 2 | public function getType() |
|
186 | |||
187 | /** |
||
188 | * @param null|string $type |
||
189 | * |
||
190 | * @return NominatimAddress |
||
191 | */ |
||
192 | 4 | public function withType(string $type = null): self |
|
199 | } |
||
200 |