Total Complexity | 11 |
Total Lines | 88 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | class State |
||
21 | { |
||
22 | use ToArray; |
||
|
|||
23 | |||
24 | /** |
||
25 | * @Serializer\Type("integer") |
||
26 | */ |
||
27 | private ?int $id = null; |
||
28 | |||
29 | /** |
||
30 | * @Serializer\Type("string") |
||
31 | */ |
||
32 | private string $name; |
||
33 | |||
34 | /** |
||
35 | * @Serializer\Type("string") |
||
36 | */ |
||
37 | private string $nameEn; |
||
38 | |||
39 | /** |
||
40 | * @Serializer\Type("string") |
||
41 | */ |
||
42 | private string $stateAlpha; |
||
43 | |||
44 | /** |
||
45 | * @Serializer\Type("integer") |
||
46 | */ |
||
47 | private int $countryId; |
||
48 | |||
49 | /** |
||
50 | * @return ?int |
||
51 | */ |
||
52 | 1 | public function getId(): ?int |
|
55 | } |
||
56 | |||
57 | /** |
||
58 | * @param ?int $id |
||
59 | */ |
||
60 | 1 | public function setId(?int $id): void |
|
61 | { |
||
62 | 1 | $this->id = $id; |
|
63 | } |
||
64 | |||
65 | 1 | public function getName(): string |
|
66 | { |
||
67 | 1 | return $this->name; |
|
68 | } |
||
69 | |||
70 | 1 | public function setName(string $name): void |
|
71 | { |
||
72 | 1 | $this->name = $name; |
|
73 | } |
||
74 | |||
75 | 1 | public function getNameEn(): string |
|
76 | { |
||
77 | 1 | return $this->nameEn; |
|
78 | } |
||
79 | |||
80 | 1 | public function setNameEn(string $nameEn): void |
|
81 | { |
||
82 | 1 | $this->nameEn = $nameEn; |
|
83 | } |
||
84 | |||
85 | 1 | public function getStateAlpha(): string |
|
86 | { |
||
87 | 1 | return $this->stateAlpha; |
|
88 | } |
||
89 | |||
90 | 1 | public function setStateAlpha(string $stateAlpha): void |
|
91 | { |
||
92 | 1 | $this->stateAlpha = $stateAlpha; |
|
93 | } |
||
94 | |||
95 | 1 | public function getCountryId(): int |
|
98 | } |
||
99 | |||
100 | 1 | public function setCountryId(int $countryId): void |
|
101 | { |
||
102 | 1 | $this->countryId = $countryId; |
|
103 | } |
||
104 | |||
105 | 1 | public function toArray(): array |
|
106 | { |
||
111 |