Set Country

@since 1.0.0
@param string $countryCode
@return \Icepay_Pbm_Object
@throws Exception
178768
public function setCountry($countryCode)
    {
        if (!Icepay_Parameter_Validation::country($countryCode))
            throw new Exception('Please enter a valid country format (ISO 3166-1)', 1005);

        $this->country = $countryCode;
        return $this;
    }
859686
public function setStatusCode($statusCode)
    {
        $statusCode = (int)$statusCode;
        if ($statusCode < 100 || $statusCode >= 600) {
            throw new \Exception("Invalid status code: {$statusCode}.");
        }
        $this->statusCode = $statusCode;
        return $this;
    }
686850
protected function getCountry($countryId)
    {
        $entityManager = $this->getEntityManager();

        /** @var \Rcm\Repository\Country $countryRepo */
        $countryRepo = $entityManager->getRepository(\Rcm\Entity\Country::class);

        $country = $countryRepo->find(
            $countryId
        );

        if (!$country instanceof Country) {
            throw new \Exception("Country {$countryId} could not be found.");
        }

        return $country;
    }
63586
public function setCountry(\OxidEsales\Eshop\Application\Model\Country $country)
    {
        $this->_oCountry = $country;
    }
878899
public function setCountry($country) {
        if (empty($country))
            throw new Exception('Country must be set and cannot be empty.');

        $this->country = trim($country);

        return $this;
    }
624739
private function setCountryCode(string $countryCode): AddressEmbeddableInterface
    {
        $this->notifyEmbeddablePrefixedProperties(
            'countryCode',
            $this->countryCode,
            $countryCode
        );
        $this->countryCode = $countryCode;

        return $this;
    }
199514
public function setCompanyPhone($areaCode, $number, $countryCode = 55)
    {
        $this->initializeCompany();
        $this->data->company->phone = new stdClass();
        $this->data->company->phone->countryCode = $countryCode;
        $this->data->company->phone->areaCode = $areaCode;
        $this->data->company->phone->number = $number;

        return $this;
    }
379840
def set_country(self, country):
        
        country = _convert_to_charp(country)
        self._set_country_func(self.alpr_pointer, country)
969548
public function setCurrencyCode($currencyCode): self
    {
        if ($currencyCode instanceof RowColumn) {
            $this->currency_column = $currencyCode->getColumnName();
        } elseif (!is_string($currencyCode) || trim($currencyCode) === '') {
            throw new Exception\InvalidArgumentException(__METHOD__ . ' Currency code must be an non empty string (or a RowColumn object)');
        }
        $this->params['currency_code'] = $currencyCode;

        return $this;
    }
1177165
public function setCountry($country)
    {
        if (!empty($country) && is_string($country) && ctype_print($country)) {
            $this->country = trim($country);
        }

        return $this;
    }
913158
public static function codes($countryCode = null)
    {
        return $countryCode
            ? \DateTimeZone::listIdentifiers(\DateTimeZone::PER_COUNTRY, $countryCode)
            : \DateTimeZone::listIdentifiers();
    }
20555
public static function findByCountryAndCode($country, $code)
    {
        $country = is_object($country) ? $country->id : $country;

        return ProvinceProxy::byCountry($country)
                            ->where('code', $code)
                            ->take(1)
                            ->get()
                            ->first();
    }
588947
protected function getCountryIdByIso2Code($countryIso2Code): int
    {
        if (!isset(static::$countryIdsCache[$countryIso2Code])) {
            static::$countryIdsCache[$countryIso2Code] = SpyCountryQuery::create()
                ->findOneByIso2Code($countryIso2Code)
                ->getIdCountry();
        }

        return static::$countryIdsCache[$countryIso2Code];
    }
137165
func (s *GetGeoLocationInput) SetCountryCode(v string) *GetGeoLocationInput {
	s.CountryCode = &v
	return s
}
919257
public function loadCountry($countryIso)
    {
        $content = $this
            ->locationLoaderAdapter
            ->getSqlForCountry($countryIso);

        $statement = $this
            ->locationEntityManager
            ->getConnection()
            ->prepare($content);

        $statement->execute();

        return $this;
    }
678604
public function store($code, $label, $country_id = null, $country_code = null)
    {
        $fields = [];
        //@todo validate params, throw exception when they are missing
        $fields['code'] = $code;
        $fields['label'] = $label;
        if (!is_null($country_id)) $fields['country_id'] = $country_id;
        if (!is_null($country_code)) $fields['country_code'] = $country_code;

        return $this->_post($fields);
    }
621099
func (s *GeoLocationDetails) SetCountryCode(v string) *GeoLocationDetails {
	s.CountryCode = &v
	return s
}