| Total Complexity | 5 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class CountriesList |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Get the country list, using IntlLocales |
||
| 14 | * |
||
| 15 | * Keys are set to uppercase to match ISO standards |
||
| 16 | * |
||
| 17 | * @return array<string,string> |
||
| 18 | */ |
||
| 19 | public static function get() |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $code |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | public static function getNameFromCode($code) |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param string $name |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | public static function getCodeFromName($name) |
||
| 53 |