Passed
Push — main ( d24563...3b4045 )
by Vasil
03:12
created

City::toArray()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace VasilDakov\Econt\Model;
6
7
use JMS\Serializer\Annotation as Serializer;
8
9
readonly class City
10
{
11 2
    public function __construct(
12
        #[Serializer\Type('int')]
13
        public ?int $id,
14
15
        #[Serializer\Type('string')]
16
        public ?string $name,
17
18
        #[Serializer\Type('string')]
19
        public ?string $nameEn,
20
21
        #[Serializer\Type('string')]
22
        public ?string $regionName,
23
24
        #[Serializer\Type('string')]
25
        public ?string $regionNameEn,
26
27
        #[Serializer\Type('string')]
28
        public ?string $phoneCode,
29
30
        #[Serializer\Type('string',)]
31
        public ?string $postCode
32
    ) {
33 2
    }
34
}
35