final protected static function initializeMembers()
    {
        $reflector = new ReflectionClass(get_called_class());

        foreach ($reflector->getReflectionConstants() as $constant) {
            if ($constant->isPublic()) {
                new static($constant->getName(), $constant->getValue());
            }
        }
    }
final protected static function initializeMembers()
    {
        $reflector = new ReflectionClass(get_called_class());

        foreach ($reflector->getReflectionConstants() as $constant) {
            if ($constant->isPublic()) {
                new static($constant->getName(), $constant->getValue());
            }
        }
    }
final protected static function initializeMembers ( ) { $ reflector = new ReflectionClass ( get_called_class ( ) ) ; foreach ( $ reflector -> getReflectionConstants ( ) as $ constant ) { if ( $ constant -> isPublic ( ) ) { new static ( $ constant -> getName ( ) , $ constant -> getValue ( ) ) ; } } }
Initializes the members of this enumeration based upon its class
constants.

Each constant becomes a member with a string key equal to the constant's
name, and a value equal to that of the constant's value.
Initializes the members of this enumeration based upon its class constants .