getCountries() публичный статический Метод

Gets all possible countries
public static getCountries ( ) : array
Результат array
Пример #1
0
 /**
  * Sets and validates the country
  *
  * @param string $country
  *
  * @return \ApaiIO\Configuration\GenericConfiguration
  */
 public function setCountry($country)
 {
     if (!Country::isValidCountry($country)) {
         throw new \InvalidArgumentException(sprintf("Invalid Country-Code: %s! Possible Country-Codes: %s", $country, implode(', ', Country::getCountries())));
     }
     $this->country = strtolower($country);
     return $this;
 }
Пример #2
0
 public function testCountryList()
 {
     $this->assertEquals(array('de', 'com', 'co.uk', 'ca', 'fr', 'co.jp', 'it', 'cn', 'es', 'in', 'com.br', 'com.mx', 'com.au'), Country::getCountries());
 }