| 1 | <?php |
||
| 25 | final class Country |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * Possible countries |
||
| 29 | * Important for the requestendpoints |
||
| 30 | * |
||
| 31 | * @var array |
||
| 32 | */ |
||
| 33 | private static $countryList = [ |
||
| 34 | 'de', |
||
| 35 | 'com', |
||
| 36 | 'co.uk', |
||
| 37 | 'ca', |
||
| 38 | 'fr', |
||
| 39 | 'co.jp', |
||
| 40 | 'it', |
||
| 41 | 'cn', |
||
| 42 | 'es', |
||
| 43 | 'in', |
||
| 44 | 'com.br', |
||
| 45 | 'com.mx', |
||
| 46 | 'com.au' |
||
| 47 | ]; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Gets all possible countries |
||
| 51 | * |
||
| 52 | * @return array |
||
| 53 | */ |
||
| 54 | 2 | public static function getCountries() |
|
| 58 | |||
| 59 | /** |
||
| 60 | * Checks if the given value is a valid country |
||
| 61 | * |
||
| 62 | * @param string $country |
||
| 63 | * |
||
| 64 | * @return boolean |
||
| 65 | */ |
||
| 66 | 6 | public static function isValidCountry($country) |
|
| 72 | } |
||
| 73 |