| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | #[ORM\Entity(CountryRepository::class)] |
||
| 15 | #[ORM\Index(name: 'FULLTEXT__COUNTRY_NAME', flags: ['fulltext'], fields: ['name'])] |
||
| 16 | class Country extends AbstractModel |
||
| 17 | { |
||
| 18 | use HasName; |
||
| 19 | |||
| 20 | #[ORM\Column(type: 'string', length: 2, unique: true)] |
||
| 21 | private string $code = ''; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Set ISO 3166-1 alpha-2 country code. |
||
| 25 | */ |
||
| 26 | public function setCode(string $code): void |
||
| 27 | { |
||
| 28 | $this->code = $code; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get ISO 3166-1 alpha-2 country code. |
||
| 33 | */ |
||
| 34 | public function getCode(): string |
||
| 37 | } |
||
| 38 | } |
||
| 39 |