src/Currency.php
public static function getCode($val)
    {
        switch($val) {
        case self::DKK:
            return 'dkk';
        case self::EUR:
            return 'eur';
        case self::NOK:
            return 'nok';
        case self::SEK:
            return 'sek';
        default:
            return null;
        }
    }
public static function getCode($val)
    {
        switch($val) {
        case self::DKK:
            return 'dkk';
        case self::EUR:
            return 'eur';
        case self::NOK:
            return 'nok';
        case self::SEK:
            return 'sek';
        default:
            return null;
        }
    }
public static function getCode ( $ val ) { switch ( $ val ) { case self :: DKK : return 'dkk' ; case self :: EUR : return 'eur' ; case self :: NOK : return 'nok' ; case self :: SEK : return 'sek' ; default : return null ; } }
Converts a KlarnaCurrency constant to the respective language code.

@param int $val KlarnaCurrency constant

@return string|null
Converts a KlarnaCurrency constant to the respective language code .