final public static function getMembers(): array
    {
        if (!isset(self::$constants[static::class])) {
            $reflection = new ReflectionClass(static::class);
            $constants = self::sortConstants($reflection);
            self::guardConstants($constants);
            self::$constants[static::class] = $constants;
        }

        return self::$constants[static::class];
    }
final public static function getMembers(): array
    {
        if (!isset(self::$constants[static::class])) {
            $reflection = new ReflectionClass(static::class);
            $constants = self::sortConstants($reflection);
            self::guardConstants($constants);
            self::$constants[static::class] = $constants;
        }

        return self::$constants[static::class];
    }
final public static function getMembers ( ) : array { if ( ! isset ( self :: $ constants [ static :: class ] ) ) { $ reflection = new ReflectionClass ( static :: class ) ; $ constants = self :: sortConstants ( $ reflection ) ; self :: guardConstants ( $ constants ) ; self :: $ constants [ static :: class ] = $ constants ; } return self :: $ constants [ static :: class ] ; }
Retrieves enum member names and values

@return array

@throws DomainException When more than one constant has the same value
Retrieves enum member names and values