public static function checkLanguage($country, $language)
    {
        switch($country) {
        case KlarnaCountry::AT:
        case KlarnaCountry::DE:
            return ($language === KlarnaLanguage::DE);
        case KlarnaCountry::NL:
            return ($language === KlarnaLanguage::NL);
        case KlarnaCountry::FI:
            return ($language === KlarnaLanguage::FI);
        case KlarnaCountry::DK:
            return ($language === KlarnaLanguage::DA);
        case KlarnaCountry::NO:
            return ($language === KlarnaLanguage::NB);
        case KlarnaCountry::SE:
            return ($language === KlarnaLanguage::SV);
        default:
            //Country not yet supported by Klarna.
            return false;
        }
    }
public static function checkLanguage($country, $language)
    {
        switch($country) {
        case KlarnaCountry::AT:
        case KlarnaCountry::DE:
            return ($language === KlarnaLanguage::DE);
        case KlarnaCountry::NL:
            return ($language === KlarnaLanguage::NL);
        case KlarnaCountry::FI:
            return ($language === KlarnaLanguage::FI);
        case KlarnaCountry::DK:
            return ($language === KlarnaLanguage::DA);
        case KlarnaCountry::NO:
            return ($language === KlarnaLanguage::NB);
        case KlarnaCountry::SE:
            return ($language === KlarnaLanguage::SV);
        default:
            //Country not yet supported by Klarna.
            return false;
        }
    }
public static function checkLanguage ( $ country , $ language ) { switch ( $ country ) { case KlarnaCountry :: AT : case KlarnaCountry :: DE : return ( $ language === KlarnaLanguage :: DE ) ; case KlarnaCountry :: NL : return ( $ language === KlarnaLanguage :: NL ) ; case KlarnaCountry :: FI : return ( $ language === KlarnaLanguage :: FI ) ; case KlarnaCountry :: DK : return ( $ language === KlarnaLanguage :: DA ) ; case KlarnaCountry :: NO : return ( $ language === KlarnaLanguage :: NB ) ; case KlarnaCountry :: SE : return ( $ language === KlarnaLanguage :: SV ) ; default : //Country not yet supported by Klarna. return false ; } }
Checks country against currency and returns true if they match.

@param int $country  {@link KlarnaCountry}
@param int $language {@link KlarnaLanguage}

@deprecated Do not use.

@return bool
Checks country against currency and returns true if they match .