Пример #1
0
 public function setCountry($country_code)
 {
     // Only set country if it is valid.
     if (Country::validateCountryCode($country_code)) {
         $this->country = $country_code;
     } elseif ($country_code == 'UK') {
         // Change incorrect United Kingdom 'UK' country code to 'GB'.
         $this->country = 'GB';
     } else {
         APIObject::$logger->error('Invalid country code "' . $country_code . '" passed from Edge MGMT API.');
     }
 }