Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class Country extends AbstractModel |
||
16 | { |
||
17 | use HasName; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | * @ORM\Column(type="string", length=2, unique=true) |
||
22 | */ |
||
23 | private $code = ''; |
||
24 | |||
25 | /** |
||
26 | * Set ISO 3166-1 alpha-2 country code |
||
27 | */ |
||
28 | public function setCode(string $code): void |
||
29 | { |
||
30 | $this->code = $code; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Get ISO 3166-1 alpha-2 country code |
||
35 | */ |
||
36 | public function getCode(): string |
||
39 | } |
||
40 | } |
||
41 |