Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | final class Country |
||
6 | { |
||
7 | /* |
||
8 | id int [0..1] |
||
9 | code2 string [0..1] ISO 3166-1 alpha-2 code (e.g. BG, GB, GR) |
||
10 | code3 string [0..1] ISO 3166-1 alpha-3 code (e.g. BGR ,GBR, GRC) |
||
11 | name string [0..1] The bulgarian name of the country |
||
12 | nameEn string [0..1] The international name of the country |
||
13 | isEU boolean [0..1] True if country is a member of the EU |
||
14 | */ |
||
15 | |||
16 | 4 | public function __construct( |
|
24 | 4 | } |
|
25 | |||
26 | 4 | public static function fromArray(array $data): Country |
|
33 |