src/EnumTrait.php
public static function getConstList() : array
    {
        if (static::$constList === null) {
            $reflection        = new ReflectionClass(get_called_class());
            static::$constList = array_values($reflection->getConstants());
        }

        return static::$constList;
    }
public static function getConstList() : array
    {
        if (static::$constList === null) {
            $reflection        = new ReflectionClass(get_called_class());
            static::$constList = array_values($reflection->getConstants());
        }

        return static::$constList;
    }
public static function getConstList ( ) : array { if ( static :: $ constList === null ) { $ reflection = new ReflectionClass ( get_called_class ( ) ) ; static :: $ constList = array_values ( $ reflection -> getConstants ( ) ) ; } return static :: $ constList ; }
Gets all possible values as an array.

@since 1.0.0

@return array List of constants.
Gets all possible values as an array .