vasildakov /
econt
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace VasilDakov\Econt\Model; |
||
| 6 | |||
| 7 | use JMS\Serializer\Annotation as Serializer; |
||
| 8 | |||
| 9 | final readonly class City |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 10 | { |
||
| 11 | 2 | public function __construct( |
|
| 12 | #[Serializer\Type('int')] |
||
| 13 | public ?int $id = null, |
||
| 14 | |||
| 15 | #[Serializer\Type('string')] |
||
| 16 | public ?string $name = null, |
||
| 17 | |||
| 18 | #[Serializer\Type('string')] |
||
| 19 | public ?string $nameEn = null, |
||
| 20 | |||
| 21 | #[Serializer\Type('string')] |
||
| 22 | public ?string $regionName = null, |
||
| 23 | |||
| 24 | #[Serializer\Type('string')] |
||
| 25 | public ?string $regionNameEn = null, |
||
| 26 | |||
| 27 | #[Serializer\Type('string')] |
||
| 28 | public ?string $phoneCode = null, |
||
| 29 | |||
| 30 | #[Serializer\Type(Country::class)] |
||
| 31 | public ?Country $country = null, |
||
| 32 | |||
| 33 | #[Serializer\Type(GeoLocation::class)] |
||
| 34 | public ?GeoLocation $location = null, |
||
| 35 | |||
| 36 | #[Serializer\Type('string',)] |
||
| 37 | public ?string $postCode = null |
||
| 38 | ) { |
||
| 39 | 2 | } |
|
| 40 | } |
||
| 41 |