@param string $country

@return $this
488637
public function addCountry($country)
    {
        if (!in_array($country, $this->countries)) {
            $this->countries[] = $country;
        }

        return $this;
    }
1104902
public function formatForCountry($country)
    {
        if (! static::isValidCountryCode($country)) {
            throw CountryCodeException::invalid($country);
        }

        return $this->lib->formatOutOfCountryCallingNumber(
            $this->getPhoneNumberInstance(),
            $country
        );
    }
379840
def set_country(self, country):
        
        country = _convert_to_charp(country)
        self._set_country_func(self.alpr_pointer, country)
145911
public function getAreaForCountry(Country $country)
    {
        $area = null;

        if (null !== $areaDeliveryModule = AreaDeliveryModuleQuery::create()->findByCountryAndModule(
            $country,
            $this->getModuleModel()
        )) {
            $area = $areaDeliveryModule->getArea();
        }

        return $area;
    }
580995
public function setAvailablePostage($country, $code)
    {
        $postage_areas = new ShippingCalculator($code, $country);
        
        $postage_areas
            ->setCost($this->SubTotalCost)
            ->setWeight($this->TotalWeight)
            ->setItems($this->TotalItems);
            
        $postage_areas = $postage_areas->getPostageAreas();
        
        Session::set("Checkout.AvailablePostage", $postage_areas);

        return $this;
    }
1133631
public function setCountry(\BlackForest\PiwikBundle\Entity\PiwikCountry $country = null)
    {
        $this->country = $country;

        return $this;
    }
767775
public function ofCountry($country)
    {
        $countries = is_array($country) ? $country : func_get_args();

        $instance = clone $this;
        $instance->countries = array_unique(
            array_merge($instance->countries, static::parseCountries($countries))
        );

        return $instance;
    }
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;
    }
223036
public function setCountry(\Tx_Oelib_Model_Country $country = null)
    {
        $countryCode = ($country !== null) ? $country->getIsoAlpha3Code() : '';

        $this->setAsString('static_info_country', $countryCode);
    }
1056164
public function validate($input, $country)
    {
        $country = trim(strtolower($country));

        if (!$this->supportsCountry($country)) {
            throw new Exception('Unsupported country: ' . $country);
        }

        if (!$input) {
            return true;
        }

        /** @var \Rickard2\Luhnar\Validator\Validator $validator */
        $validator = new $this->countryClassMap[$country];

        return $validator->validate($input);
    }
900758
public function addWhitelistCountry(string $country): self
    {
        $this->isValidCountry($country);

        $this->whitelistCountries[] = $country;

        return $this;
    }
1142320
private function _checkCountry(&$country)
    {
        if (!isset($country)) {
            throw new Klarna_ArgumentNotSetException("Country");
        }
        if (is_numeric($country) && !is_int($country)) {
            $country = intval($country);
        }
        if (!is_numeric($country) || !is_int($country)) {
            throw new Klarna_InvalidTypeException("Country", "integer");
        }
    }
988839
public function addCountry(\BlackForest\PiwikBundle\Entity\PiwikCountry $country)
    {
        $this->country[] = $country;

        return $this;
    }
725482
public static function make(string $country = null)
    {
        if (empty($country)) {
            $country = config('default');
        }

        return (new static() )->setCurrency($country);
    }
1268295
public function setCurrency(string $currency): self
    {
        $this->isValidCurrency($currency);

        $this->currency = $currency;

        return $this;
    }
763032
private function loadStates($country)
    {
        return $this->repository->getHelper()->loadJson($country['cca3'], 'states/default')
                ->overwrite($this->repository->getHelper()->loadJson($country['cca3'], 'states/overload'));
    }
917419
public static function get($country)
    {
        switch (strtoupper($country)) {
        case "DE":
            return KlarnaEncoding::PNO_DE;
        case "DK":
            return KlarnaEncoding::PNO_DK;
        case "FI":
            return KlarnaEncoding::PNO_FI;
        case "NL":
            return KlarnaEncoding::PNO_NL;
        case "NO":
            return KlarnaEncoding::PNO_NO;
        case "SE":
            return KlarnaEncoding::PNO_SE;
        case "AT":
            return KlarnaEncoding::PNO_AT;
        default:
            return -1;
        }
    }