src/main/php/lang/Enum.php
public static function forName($name)
    {
        $enum = new \ReflectionClass(get_called_class());
        try {
            return $enum->getStaticPropertyValue($name);
        } catch (\ReflectionException $re) {
            throw new \InvalidArgumentException($re->getMessage());
        }
    }
public static function forName($name)
    {
        $enum = new \ReflectionClass(get_called_class());
        try {
            return $enum->getStaticPropertyValue($name);
        } catch (\ReflectionException $re) {
            throw new \InvalidArgumentException($re->getMessage());
        }
    }
returns the enum instance of given class identified by its name

@api
@param   string  $name
@return  \stubbles\lang\Enum
@throws  \InvalidArgumentException