original_string: 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)");
      }
code: 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)");
      }
code_tokens: 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)" ) ; }
docstring: Sets the country, use either a two letter representation or the integer
  constant.
  
  @param int $country {@link KlarnaCountry}
  
  @throws KlarnaException
  @return void
docstring_tokens: Sets the country use either a two letter representation or the integer constant .