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 $class; |
||
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 | 1 | public function getAttribution() |
|
59 | |||
60 | /** |
||
61 | * @param null|string $attribution |
||
62 | * |
||
63 | * @return NominatimAddress |
||
64 | */ |
||
65 | 5 | public function withAttribution(string $attribution = null): self |
|
72 | |||
73 | /** |
||
74 | * @return null|string |
||
75 | */ |
||
76 | 1 | public function getClass() |
|
80 | |||
81 | /** |
||
82 | * @param null|string $class |
||
83 | * |
||
84 | * @return NominatimAddress |
||
85 | */ |
||
86 | 3 | public function withClass(string $class = null): self |
|
93 | |||
94 | /** |
||
95 | * @return null|string |
||
96 | */ |
||
97 | 1 | public function getDisplayName() |
|
101 | |||
102 | /** |
||
103 | * @param null|string $displayName |
||
104 | * |
||
105 | * @return NominatimAddress |
||
106 | */ |
||
107 | 5 | public function withDisplayName(string $displayName = null): self |
|
114 | |||
115 | /** |
||
116 | * @return null|int |
||
117 | */ |
||
118 | 1 | public function getOSMId() |
|
122 | |||
123 | /** |
||
124 | * @param null|int $osmId |
||
125 | * |
||
126 | * @return NominatimAddress |
||
127 | */ |
||
128 | 5 | public function withOSMId(int $osmId = null): self |
|
135 | |||
136 | /** |
||
137 | * @return null|string |
||
138 | */ |
||
139 | 1 | public function getOSMType() |
|
143 | |||
144 | /** |
||
145 | * @param null|string $osmType |
||
146 | * |
||
147 | * @return NominatimAddress |
||
148 | */ |
||
149 | 5 | public function withOSMType(string $osmType = null): self |
|
156 | |||
157 | /** |
||
158 | * @return null|string |
||
159 | */ |
||
160 | 1 | public function getType() |
|
164 | |||
165 | /** |
||
166 | * @param null|string $type |
||
167 | * |
||
168 | * @return NominatimAddress |
||
169 | */ |
||
170 | 3 | public function withType(string $type = null): self |
|
177 | } |
||
178 |