public static function get($key)
    {
        $key = strtoupper($key);

        $list = static::loadConstants();

        if(array_key_exists($key,$list))
            return static::loadConstants()[$key];

        if(static::exist($key))
            return $key;

        // Throw exception.
        static::invalidType();
    }
public static function get($key)
    {
        $key = strtoupper($key);

        $list = static::loadConstants();

        if(array_key_exists($key,$list))
            return static::loadConstants()[$key];

        if(static::exist($key))
            return $key;

        // Throw exception.
        static::invalidType();
    }
public static function get ( $ key ) { $ key = strtoupper ( $ key ) ; $ list = static :: loadConstants ( ) ; if ( array_key_exists ( $ key , $ list ) ) return static :: loadConstants ( ) [ $ key ] ; if ( static :: exist ( $ key ) ) return $ key ; // Throw exception. static :: invalidType ( ) ; }
Get the constant value from a passed report type.

@param $key
@return mixed
@throws ReportFormat
Get the constant value from a passed report type .