public function getLanguageCode($language = null)
    {
        if ($language === null) {
            $language = $this->_language;
        }
        $code = KlarnaLanguage::getCode($language);

        return (string) $code;
    }
public function getLanguageCode($language = null)
    {
        if ($language === null) {
            $language = $this->_language;
        }
        $code = KlarnaLanguage::getCode($language);

        return (string) $code;
    }
public function getLanguageCode ( $ language = null ) { if ( $ language === null ) { $ language = $ this -> _language ; } $ code = KlarnaLanguage :: getCode ( $ language ) ; return ( string ) $ code ; }
Returns the language code for the set language constant.

@param int $language {@link KlarnaLanguage Language} constant.

@return string Two letter code, e.g. "da", "de", etc.
Returns the language code for the set language constant .