1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace VasilDakov\Speedy\Service\Shipment; |
||
6 | |||
7 | use JMS\Serializer\Annotation as Serializer; |
||
8 | use VasilDakov\Speedy\Traits\ToArray; |
||
9 | |||
10 | /** |
||
11 | * Class ShipmentAddress. |
||
12 | * |
||
13 | * @author Valentin Valkanov <[email protected]> |
||
14 | * @author Vasil Dakov <[email protected]> |
||
15 | * @copyright |
||
16 | * |
||
17 | * @version |
||
18 | * |
||
19 | * @Serializer\AccessType("public_method") |
||
20 | */ |
||
21 | class ShipmentAddress |
||
22 | { |
||
23 | use ToArray; |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
24 | |||
25 | /** |
||
26 | * @Serializer\Type("integer") |
||
27 | */ |
||
28 | private ?int $countryId = null; |
||
29 | |||
30 | /** |
||
31 | * @Serializer\Type("string") |
||
32 | */ |
||
33 | private ?string $stateId = null; |
||
34 | |||
35 | /** |
||
36 | * @Serializer\Type("integer") |
||
37 | */ |
||
38 | private int $siteId; |
||
39 | |||
40 | /** |
||
41 | * @Serializer\Type("string") |
||
42 | */ |
||
43 | private ?string $siteType = null; |
||
44 | |||
45 | /** |
||
46 | * @Serializer\Type("string") |
||
47 | */ |
||
48 | private ?string $siteName = null; |
||
49 | |||
50 | /** |
||
51 | * @Serializer\Type("string") |
||
52 | */ |
||
53 | private ?string $postCode = null; |
||
54 | |||
55 | /** |
||
56 | * @Serializer\Type("integer") |
||
57 | */ |
||
58 | private ?int $streetId = null; |
||
59 | |||
60 | /** |
||
61 | * @Serializer\Type("string") |
||
62 | */ |
||
63 | private ?string $streetType = null; |
||
64 | |||
65 | /** |
||
66 | * @Serializer\Type("string") |
||
67 | */ |
||
68 | private ?string $streetName = null; |
||
69 | |||
70 | /** |
||
71 | * @Serializer\Type("string") |
||
72 | */ |
||
73 | private ?string $streetNo = null; |
||
74 | |||
75 | /** |
||
76 | * @Serializer\Type("integer") |
||
77 | */ |
||
78 | private ?int $complexId = null; |
||
79 | |||
80 | /** |
||
81 | * @Serializer\Type("string") |
||
82 | */ |
||
83 | private ?string $complexType = null; |
||
84 | |||
85 | /** |
||
86 | * @Serializer\Type("string") |
||
87 | */ |
||
88 | private ?string $complexName = null; |
||
89 | |||
90 | /** |
||
91 | * @Serializer\Type("string") |
||
92 | */ |
||
93 | private ?string $blockNo = null; |
||
94 | |||
95 | /** |
||
96 | * @Serializer\Type("string") |
||
97 | */ |
||
98 | private ?string $entranceNo = null; |
||
99 | |||
100 | /** |
||
101 | * @Serializer\Type("string") |
||
102 | */ |
||
103 | private ?string $floorNo = null; |
||
104 | |||
105 | /** |
||
106 | * @Serializer\Type("string") |
||
107 | */ |
||
108 | private ?string $apartmentNo = null; |
||
109 | |||
110 | /** |
||
111 | * @Serializer\Type("integer") |
||
112 | */ |
||
113 | private ?int $poiId = null; |
||
114 | |||
115 | /** |
||
116 | * @Serializer\Type("string") |
||
117 | */ |
||
118 | private ?string $addressNote = null; |
||
119 | |||
120 | /** |
||
121 | * @Serializer\Type("string") |
||
122 | */ |
||
123 | private ?string $addressLine1 = null; |
||
124 | |||
125 | /** |
||
126 | * @Serializer\Type("string") |
||
127 | */ |
||
128 | private ?string $addressLine2 = null; |
||
129 | |||
130 | /** |
||
131 | * @Serializer\Type("float") |
||
132 | */ |
||
133 | private ?float $x = null; |
||
134 | |||
135 | /** |
||
136 | * @Serializer\Type("float") |
||
137 | */ |
||
138 | private ?float $y = null; |
||
139 | |||
140 | 1 | public function __construct(int $siteId, int $complexId = null, int $streetId = null, string $streetNo = null) |
|
141 | { |
||
142 | 1 | $this->siteId = $siteId; |
|
143 | 1 | $this->complexId = $complexId; |
|
144 | 1 | $this->streetId = $streetId; |
|
145 | 1 | $this->streetNo = $streetNo; |
|
146 | } |
||
147 | |||
148 | 1 | public function getCountryId(): ?int |
|
149 | { |
||
150 | 1 | return $this->countryId; |
|
151 | } |
||
152 | |||
153 | 2 | public function setCountryId(int $countryId): void |
|
154 | { |
||
155 | 2 | $this->countryId = $countryId; |
|
156 | } |
||
157 | |||
158 | 1 | public function getStateId(): ?string |
|
159 | { |
||
160 | 1 | return $this->stateId; |
|
161 | } |
||
162 | |||
163 | 2 | public function setStateId(string $stateId): self |
|
164 | { |
||
165 | 2 | $this->stateId = $stateId; |
|
166 | |||
167 | 2 | return $this; |
|
168 | } |
||
169 | |||
170 | 1 | public function getSiteId(): ?int |
|
171 | { |
||
172 | 1 | return $this->siteId; |
|
173 | } |
||
174 | |||
175 | 4 | public function setSiteId(int $siteId): void |
|
176 | { |
||
177 | 4 | $this->siteId = $siteId; |
|
178 | } |
||
179 | |||
180 | 1 | public function getSiteType(): ?string |
|
181 | { |
||
182 | 1 | return $this->siteType; |
|
183 | } |
||
184 | |||
185 | 2 | public function setSiteType(string $siteType): void |
|
186 | { |
||
187 | 2 | $this->siteType = $siteType; |
|
188 | } |
||
189 | |||
190 | 2 | public function getSiteName(): ?string |
|
191 | { |
||
192 | 2 | return $this->siteName; |
|
193 | } |
||
194 | |||
195 | 4 | public function setSiteName(string $siteName): void |
|
196 | { |
||
197 | 4 | $this->siteName = $siteName; |
|
198 | } |
||
199 | |||
200 | 1 | public function getPostCode(): ?string |
|
201 | { |
||
202 | 1 | return $this->postCode; |
|
203 | } |
||
204 | |||
205 | 2 | public function setPostCode(string $postCode): void |
|
206 | { |
||
207 | 2 | $this->postCode = $postCode; |
|
208 | } |
||
209 | |||
210 | 1 | public function getStreetId(): ?int |
|
211 | { |
||
212 | 1 | return $this->streetId; |
|
213 | } |
||
214 | |||
215 | 2 | public function setStreetId(int $streetId): void |
|
216 | { |
||
217 | 2 | $this->streetId = $streetId; |
|
218 | } |
||
219 | |||
220 | 1 | public function getStreetType(): ?string |
|
221 | { |
||
222 | 1 | return $this->streetType; |
|
223 | } |
||
224 | |||
225 | 4 | public function setStreetType(string $streetType): void |
|
226 | { |
||
227 | 4 | $this->streetType = $streetType; |
|
228 | } |
||
229 | |||
230 | 2 | public function getStreetName(): ?string |
|
231 | { |
||
232 | 2 | return $this->streetName; |
|
233 | } |
||
234 | |||
235 | 4 | public function setStreetName(string $streetName): void |
|
236 | { |
||
237 | 4 | $this->streetName = $streetName; |
|
238 | } |
||
239 | |||
240 | 1 | public function getStreetNo(): ?string |
|
241 | { |
||
242 | 1 | return $this->streetNo; |
|
243 | } |
||
244 | |||
245 | 4 | public function setStreetNo(string $streetNo): void |
|
246 | { |
||
247 | 4 | $this->streetNo = $streetNo; |
|
248 | } |
||
249 | |||
250 | 1 | public function getComplexId(): ?int |
|
251 | { |
||
252 | 1 | return $this->complexId; |
|
253 | } |
||
254 | |||
255 | /** |
||
256 | * @param ?int $complexId |
||
257 | */ |
||
258 | 2 | public function setComplexId(?int $complexId): void |
|
259 | { |
||
260 | 2 | $this->complexId = $complexId; |
|
261 | } |
||
262 | |||
263 | 1 | public function getComplexType(): ?string |
|
264 | { |
||
265 | 1 | return $this->complexType; |
|
266 | } |
||
267 | |||
268 | /** |
||
269 | * @param ?string $complexType |
||
270 | */ |
||
271 | 2 | public function setComplexType(?string $complexType): void |
|
272 | { |
||
273 | 2 | $this->complexType = $complexType; |
|
274 | } |
||
275 | |||
276 | 1 | public function getComplexName(): ?string |
|
277 | { |
||
278 | 1 | return $this->complexName; |
|
279 | } |
||
280 | |||
281 | 2 | public function setComplexName(string $complexName): void |
|
282 | { |
||
283 | 2 | $this->complexName = $complexName; |
|
284 | } |
||
285 | |||
286 | 1 | public function getBlockNo(): ?string |
|
287 | { |
||
288 | 1 | return $this->blockNo; |
|
289 | } |
||
290 | |||
291 | 2 | public function setBlockNo(string $blockNo): void |
|
292 | { |
||
293 | 2 | $this->blockNo = $blockNo; |
|
294 | } |
||
295 | |||
296 | 1 | public function getEntranceNo(): ?string |
|
297 | { |
||
298 | 1 | return $this->entranceNo; |
|
299 | } |
||
300 | |||
301 | 2 | public function setEntranceNo(string $entranceNo): void |
|
302 | { |
||
303 | 2 | $this->entranceNo = $entranceNo; |
|
304 | } |
||
305 | |||
306 | 1 | public function getFloorNo(): ?string |
|
307 | { |
||
308 | 1 | return $this->floorNo; |
|
309 | } |
||
310 | |||
311 | 2 | public function setFloorNo(string $floorNo): void |
|
312 | { |
||
313 | 2 | $this->floorNo = $floorNo; |
|
314 | } |
||
315 | |||
316 | 1 | public function getApartmentNo(): ?string |
|
317 | { |
||
318 | 1 | return $this->apartmentNo; |
|
319 | } |
||
320 | |||
321 | 2 | public function setApartmentNo(string $apartmentNo): void |
|
322 | { |
||
323 | 2 | $this->apartmentNo = $apartmentNo; |
|
324 | } |
||
325 | |||
326 | 1 | public function getPoiId(): ?int |
|
327 | { |
||
328 | 1 | return $this->poiId; |
|
329 | } |
||
330 | |||
331 | /** |
||
332 | * @param ?int $poiId |
||
333 | */ |
||
334 | 2 | public function setPoiId(?int $poiId): void |
|
335 | { |
||
336 | 2 | $this->poiId = $poiId; |
|
337 | } |
||
338 | |||
339 | 1 | public function getAddressNote(): ?string |
|
340 | { |
||
341 | 1 | return $this->addressNote; |
|
342 | } |
||
343 | |||
344 | 2 | public function setAddressNote(string $addressNote): void |
|
345 | { |
||
346 | 2 | $this->addressNote = $addressNote; |
|
347 | } |
||
348 | |||
349 | 1 | public function getAddressLine1(): ?string |
|
350 | { |
||
351 | 1 | return $this->addressLine1; |
|
352 | } |
||
353 | |||
354 | 2 | public function setAddressLine1(string $addressLine1): void |
|
355 | { |
||
356 | 2 | $this->addressLine1 = $addressLine1; |
|
357 | } |
||
358 | |||
359 | 1 | public function getAddressLine2(): ?string |
|
360 | { |
||
361 | 1 | return $this->addressLine2; |
|
362 | } |
||
363 | |||
364 | 2 | public function setAddressLine2(string $addressLine2): void |
|
365 | { |
||
366 | 2 | $this->addressLine2 = $addressLine2; |
|
367 | } |
||
368 | |||
369 | 1 | public function getX(): ?float |
|
370 | { |
||
371 | 1 | return $this->x; |
|
372 | } |
||
373 | |||
374 | 2 | public function setX(float $x): void |
|
375 | { |
||
376 | 2 | $this->x = $x; |
|
377 | } |
||
378 | |||
379 | 1 | public function getY(): ?float |
|
380 | { |
||
381 | 1 | return $this->y; |
|
382 | } |
||
383 | |||
384 | 2 | public function setY(float $y): void |
|
385 | { |
||
386 | 2 | $this->y = $y; |
|
387 | } |
||
388 | } |
||
389 |