original_string: public function setLanguage($language)
      {
          if (!is_numeric($language) && strlen($language) == 2) {
              $this->setLanguage(self::getLanguageForCode($language));
          } else {
              $this->_checkLanguage($language);
              $this->_language = $language;
          }
      }
code: public function setLanguage($language)
      {
          if (!is_numeric($language) && strlen($language) == 2) {
              $this->setLanguage(self::getLanguageForCode($language));
          } else {
              $this->_checkLanguage($language);
              $this->_language = $language;
          }
      }
code_tokens: public function setLanguage ( $ language ) { if ( ! is_numeric ( $ language ) && strlen ( $ language ) == 2 ) { $ this -> setLanguage ( self :: getLanguageForCode ( $ language ) ) ; } else { $ this -> _checkLanguage ( $ language ) ; $ this -> _language = $ language ; } }
docstring: Sets the language used.
  
  <b>Note</b>:<br>
  You can use the two letter language code instead of the constant.<br>
  E.g. 'da' instead of using {@link KlarnaLanguage::DA}.<br>
  
  @param string|int $language {@link KlarnaLanguage}
  
  @see KlarnaLanguage
  
  @throws KlarnaException
  @return void
docstring_tokens: Sets the language used .