final public static function values()
    {
        $names = self::names();
        $result = [];

        foreach ($names as $name) {
            $result[] = static::$name();
        }

        return $result;
    }
final public static function values()
    {
        $names = self::names();
        $result = [];

        foreach ($names as $name) {
            $result[] = static::$name();
        }

        return $result;
    }
final public static function values ( ) { $ names = self :: names ( ) ; $ result = [ ] ; foreach ( $ names as $ name ) { $ result [ ] = static :: $ name ( ) ; } return $ result ; }
Returns an array containing the enumeration constants of this enumeration
type, in the order they are declared.

This method may be used to iterate over the enumeration constants as
follows:

/---code php
foreach (ConcreteEnum::values() as $constant) {
// Same as "echo $constant->__toString(), \PHP_EOL";
echo $constant, \PHP_EOL;
}
\---

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