public static function getCardType($type)
    {
        if (isset(self::$cardTypes[$type])) {
            return self::$cardTypes[$type];
        }
        return $type;
    }
public static function getCardType($type)
    {
        if (isset(self::$cardTypes[$type])) {
            return self::$cardTypes[$type];
        }
        return $type;
    }
public static function getCardType ( $ type ) { if ( isset ( self :: $ cardTypes [ $ type ] ) ) { return self :: $ cardTypes [ $ type ] ; } return $ type ; }
Get the card type name, from the card type code.

@param string $type

@return string
Get the card type name from the card type code .