private static function namesFor($enumType)
    {
        $result = [];

        $methods = ReflectionUtils::methodsForClassWithoutInheritedMethods(
            $enumType,
            [
                ReflectionMethod::IS_FINAL,
                ReflectionMethod::IS_STATIC,
                ReflectionMethod::IS_PUBLIC
            ]
        );

        /* @var $method ReflectionMethod */
        foreach ($methods as $method) {
            if ($method->name === \strtoupper($method->name)) {
                $result[] = $method->name;
            }
        }

        return $result;
    }
private static function namesFor($enumType)
    {
        $result = [];

        $methods = ReflectionUtils::methodsForClassWithoutInheritedMethods(
            $enumType,
            [
                ReflectionMethod::IS_FINAL,
                ReflectionMethod::IS_STATIC,
                ReflectionMethod::IS_PUBLIC
            ]
        );

        /* @var $method ReflectionMethod */
        foreach ($methods as $method) {
            if ($method->name === \strtoupper($method->name)) {
                $result[] = $method->name;
            }
        }

        return $result;
    }
private static function namesFor ( $ enumType ) { $ result = [ ] ; $ methods = ReflectionUtils :: methodsForClassWithoutInheritedMethods ( $ enumType , [ ReflectionMethod :: IS_FINAL , ReflectionMethod :: IS_STATIC , ReflectionMethod :: IS_PUBLIC ] ) ; /* @var $method ReflectionMethod */ foreach ( $ methods as $ method ) { if ( $ method -> name === \ strtoupper ( $ method -> name ) ) { $ result [ ] = $ method -> name ; } } return $ result ; }
Returns an array containing the names of the enumeration constants of
the specified enumeration type.

The returned array does **not** contain enumeration constant names from
the subclasses of the specified enumeration type.

@param string $enumType The enumeration type

@return string[] An array containing the names of the constants of this
enumeration type, in the order they are declared.
Returns an array containing the names of the enumeration constants of the specified enumeration type .