public static function getAll()
    {
        $class = get_called_class();
        if (!isset(static::$values[$class])) {
            $reflection = new \ReflectionClass($class);
            static::$values[$class] = $reflection->getConstants();
        }

        return static::$values[$class];
    }
public static function getAll()
    {
        $class = get_called_class();
        if (!isset(static::$values[$class])) {
            $reflection = new \ReflectionClass($class);
            static::$values[$class] = $reflection->getConstants();
        }

        return static::$values[$class];
    }
public static function getAll ( ) { $ class = get_called_class ( ) ; if ( ! isset ( static :: $ values [ $ class ] ) ) { $ reflection = new \ ReflectionClass ( $ class ) ; static :: $ values [ $ class ] = $ reflection -> getConstants ( ) ; } return static :: $ values [ $ class ] ; }
Gets all available values.

@return array The available values, keyed by constant.
Gets all available values .