public static function values()
    {
        $class = get_called_class();

        if (!isset(self::$cache[$class])) {
            $reflected = new \ReflectionClass($class);
            self::$cache[$class] = $reflected->getConstants();
        }

        return self::$cache[$class];
    }
public static function values()
    {
        $class = get_called_class();

        if (!isset(self::$cache[$class])) {
            $reflected = new \ReflectionClass($class);
            self::$cache[$class] = $reflected->getConstants();
        }

        return self::$cache[$class];
    }
public static function values ( ) { $ class = get_called_class ( ) ; if ( ! isset ( self :: $ cache [ $ class ] ) ) { $ reflected = new \ ReflectionClass ( $ class ) ; self :: $ cache [ $ class ] = $ reflected -> getConstants ( ) ; } return self :: $ cache [ $ class ] ; }
Return the names and values of all the constants in the enum

@return array
Return the names and values of all the constants in the enum