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