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