src/klarnaaddr.php
public function setCountry($country)
    {
        if ($country === null) {
            throw new Klarna_ArgumentNotSetException('Country');
        }
        if (is_numeric($country)) {
            if (!is_int($country)) {
                $country = intval($country);
            }
            $this->country = $country;
            return;
        }
        if (strlen($country) == 2 || strlen($country) == 3) {
            $this->setCountry(KlarnaCountry::fromCode($country));
            return;
        }
        throw new KlarnaException("Failed to set country! ($country)");
    }
public function setCountry($country)
    {
        if ($country === null) {
            throw new Klarna_ArgumentNotSetException('Country');
        }
        if (is_numeric($country)) {
            if (!is_int($country)) {
                $country = intval($country);
            }
            $this->country = $country;
            return;
        }
        if (strlen($country) == 2 || strlen($country) == 3) {
            $this->setCountry(KlarnaCountry::fromCode($country));
            return;
        }
        throw new KlarnaException("Failed to set country! ($country)");
    }
public function setCountry ( $ country ) { if ( $ country === null ) { throw new Klarna_ArgumentNotSetException ( 'Country' ) ; } if ( is_numeric ( $ country ) ) { if ( ! is_int ( $ country ) ) { $ country = intval ( $ country ) ; } $ this -> country = $ country ; return ; } if ( strlen ( $ country ) == 2 || strlen ( $ country ) == 3 ) { $ this -> setCountry ( KlarnaCountry :: fromCode ( $ country ) ) ; return ; } throw new KlarnaException ( "Failed to set country! ($country)" ) ; }
Sets the country, use either a two letter representation or the integer
constant.

@param int $country {@link KlarnaCountry}

@throws KlarnaException
@return void
Sets the country use either a two letter representation or the integer constant .