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 Site. |
||
| 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 Site |
||
| 23 | { |
||
| 24 | use ToArray; |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 25 | |||
| 26 | /** |
||
| 27 | * @Serializer\Type("integer") |
||
| 28 | */ |
||
| 29 | private ?int $id; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @Serializer\Type("integer") |
||
| 33 | */ |
||
| 34 | private ?int $countryId; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @Serializer\Type("integer") |
||
| 38 | */ |
||
| 39 | private ?int $mainSiteId; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @Serializer\Type("string") |
||
| 43 | */ |
||
| 44 | private ?string $type; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @Serializer\Type("string") |
||
| 48 | */ |
||
| 49 | private ?string $typeEn; |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @Serializer\Type("string") |
||
| 53 | */ |
||
| 54 | private ?string $name; |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @Serializer\Type("string") |
||
| 58 | */ |
||
| 59 | private ?string $nameEn; |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @Serializer\Type("string") |
||
| 63 | */ |
||
| 64 | private ?string $municipality; |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @Serializer\Type("string") |
||
| 68 | */ |
||
| 69 | private ?string $municipalityEn; |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @Serializer\Type("string") |
||
| 73 | */ |
||
| 74 | private ?string $region; |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @Serializer\Type("string") |
||
| 78 | */ |
||
| 79 | private ?string $regionEn; |
||
| 80 | |||
| 81 | /** |
||
| 82 | * @Serializer\Type("string") |
||
| 83 | */ |
||
| 84 | private ?string $postCode; |
||
| 85 | |||
| 86 | /** |
||
| 87 | * @Serializer\Type("integer") |
||
| 88 | */ |
||
| 89 | private ?int $addressNomenclature; |
||
| 90 | |||
| 91 | /** |
||
| 92 | * @Serializer\Type("float") |
||
| 93 | */ |
||
| 94 | private ?float $x; |
||
| 95 | |||
| 96 | /** |
||
| 97 | * @Serializer\Type("float") |
||
| 98 | */ |
||
| 99 | private ?float $y; |
||
| 100 | |||
| 101 | /** |
||
| 102 | * @Serializer\Type("string") |
||
| 103 | */ |
||
| 104 | private ?string $servingDays; |
||
| 105 | |||
| 106 | /** |
||
| 107 | * @Serializer\Type("integer") |
||
| 108 | */ |
||
| 109 | private ?int $servingOfficeId; |
||
| 110 | |||
| 111 | /** |
||
| 112 | * @Serializer\Type("integer") |
||
| 113 | */ |
||
| 114 | private ?int $servingHubOfficeId; |
||
| 115 | |||
| 116 | 1 | public function getId(): ?int |
|
| 117 | { |
||
| 118 | 1 | return $this->id; |
|
| 119 | } |
||
| 120 | |||
| 121 | 2 | public function setId(?int $id): void |
|
| 122 | { |
||
| 123 | 2 | $this->id = $id; |
|
| 124 | } |
||
| 125 | |||
| 126 | 1 | public function getCountryId(): ?int |
|
| 127 | { |
||
| 128 | 1 | return $this->countryId; |
|
| 129 | } |
||
| 130 | |||
| 131 | 2 | public function setCountryId(?int $countryId): void |
|
| 132 | { |
||
| 133 | 2 | $this->countryId = $countryId; |
|
| 134 | } |
||
| 135 | |||
| 136 | 1 | public function getMainSiteId(): ?int |
|
| 137 | { |
||
| 138 | 1 | return $this->mainSiteId; |
|
| 139 | } |
||
| 140 | |||
| 141 | 2 | public function setMainSiteId(?int $mainSiteId): void |
|
| 142 | { |
||
| 143 | 2 | $this->mainSiteId = $mainSiteId; |
|
| 144 | } |
||
| 145 | |||
| 146 | 1 | public function getType(): ?string |
|
| 147 | { |
||
| 148 | 1 | return $this->type; |
|
| 149 | } |
||
| 150 | |||
| 151 | 2 | public function setType(?string $type): void |
|
| 152 | { |
||
| 153 | 2 | $this->type = $type; |
|
| 154 | } |
||
| 155 | |||
| 156 | 1 | public function getTypeEn(): ?string |
|
| 157 | { |
||
| 158 | 1 | return $this->typeEn; |
|
| 159 | } |
||
| 160 | |||
| 161 | 2 | public function setTypeEn(?string $typeEn): void |
|
| 162 | { |
||
| 163 | 2 | $this->typeEn = $typeEn; |
|
| 164 | } |
||
| 165 | |||
| 166 | 1 | public function getName(): ?string |
|
| 167 | { |
||
| 168 | 1 | return $this->name; |
|
| 169 | } |
||
| 170 | |||
| 171 | 2 | public function setName(?string $name): void |
|
| 172 | { |
||
| 173 | 2 | $this->name = $name; |
|
| 174 | } |
||
| 175 | |||
| 176 | 1 | public function getNameEn(): ?string |
|
| 177 | { |
||
| 178 | 1 | return $this->nameEn; |
|
| 179 | } |
||
| 180 | |||
| 181 | 2 | public function setNameEn(?string $nameEn): void |
|
| 182 | { |
||
| 183 | 2 | $this->nameEn = $nameEn; |
|
| 184 | } |
||
| 185 | |||
| 186 | 1 | public function getMunicipality(): ?string |
|
| 187 | { |
||
| 188 | 1 | return $this->municipality; |
|
| 189 | } |
||
| 190 | |||
| 191 | 2 | public function setMunicipality(?string $municipality): void |
|
| 192 | { |
||
| 193 | 2 | $this->municipality = $municipality; |
|
| 194 | } |
||
| 195 | |||
| 196 | 1 | public function getMunicipalityEn(): ?string |
|
| 197 | { |
||
| 198 | 1 | return $this->municipalityEn; |
|
| 199 | } |
||
| 200 | |||
| 201 | 2 | public function setMunicipalityEn(?string $municipalityEn): void |
|
| 202 | { |
||
| 203 | 2 | $this->municipalityEn = $municipalityEn; |
|
| 204 | } |
||
| 205 | |||
| 206 | 1 | public function getRegion(): ?string |
|
| 207 | { |
||
| 208 | 1 | return $this->region; |
|
| 209 | } |
||
| 210 | |||
| 211 | 2 | public function setRegion(?string $region): void |
|
| 212 | { |
||
| 213 | 2 | $this->region = $region; |
|
| 214 | } |
||
| 215 | |||
| 216 | 1 | public function getRegionEn(): ?string |
|
| 217 | { |
||
| 218 | 1 | return $this->regionEn; |
|
| 219 | } |
||
| 220 | |||
| 221 | 2 | public function setRegionEn(?string $regionEn): void |
|
| 222 | { |
||
| 223 | 2 | $this->regionEn = $regionEn; |
|
| 224 | } |
||
| 225 | |||
| 226 | 1 | public function getPostCode(): ?string |
|
| 227 | { |
||
| 228 | 1 | return $this->postCode; |
|
| 229 | } |
||
| 230 | |||
| 231 | 2 | public function setPostCode(?string $postCode): void |
|
| 232 | { |
||
| 233 | 2 | $this->postCode = $postCode; |
|
| 234 | } |
||
| 235 | |||
| 236 | 1 | public function getAddressNomenclature(): ?int |
|
| 237 | { |
||
| 238 | 1 | return $this->addressNomenclature; |
|
| 239 | } |
||
| 240 | |||
| 241 | 2 | public function setAddressNomenclature(?int $addressNomenclature): void |
|
| 242 | { |
||
| 243 | 2 | $this->addressNomenclature = $addressNomenclature; |
|
| 244 | } |
||
| 245 | |||
| 246 | /** |
||
| 247 | * @return float|int |
||
| 248 | */ |
||
| 249 | 1 | public function getX() |
|
| 250 | { |
||
| 251 | 1 | return $this->x; |
|
| 252 | } |
||
| 253 | |||
| 254 | /** |
||
| 255 | * @param float|int $x |
||
| 256 | */ |
||
| 257 | 2 | public function setX($x): void |
|
| 258 | { |
||
| 259 | 2 | $this->x = $x; |
|
| 260 | } |
||
| 261 | |||
| 262 | 1 | public function getY(): ?float |
|
| 263 | { |
||
| 264 | 1 | return $this->y; |
|
| 265 | } |
||
| 266 | |||
| 267 | 2 | public function setY(?float $y): void |
|
| 268 | { |
||
| 269 | 2 | $this->y = $y; |
|
| 270 | } |
||
| 271 | |||
| 272 | 1 | public function getServingDays(): ?string |
|
| 273 | { |
||
| 274 | 1 | return $this->servingDays; |
|
| 275 | } |
||
| 276 | |||
| 277 | 2 | public function setServingDays(?string $servingDays): void |
|
| 278 | { |
||
| 279 | 2 | $this->servingDays = $servingDays; |
|
| 280 | } |
||
| 281 | |||
| 282 | 1 | public function getServingOfficeId(): ?int |
|
| 283 | { |
||
| 284 | 1 | return $this->servingOfficeId; |
|
| 285 | } |
||
| 286 | |||
| 287 | 2 | public function setServingOfficeId(?int $servingOfficeId): void |
|
| 288 | { |
||
| 289 | 2 | $this->servingOfficeId = $servingOfficeId; |
|
| 290 | } |
||
| 291 | |||
| 292 | 1 | public function getServingHubOfficeId(): ?int |
|
| 293 | { |
||
| 294 | 1 | return $this->servingHubOfficeId; |
|
| 295 | } |
||
| 296 | |||
| 297 | 2 | public function setServingHubOfficeId(?int $servingHubOfficeId): void |
|
| 298 | { |
||
| 299 | 2 | $this->servingHubOfficeId = $servingHubOfficeId; |
|
| 300 | } |
||
| 301 | } |
||
| 302 |