src/GerritDrost/Lib/Enum/Enum.php
public static final function byName($enumName)
    {
        $instances = self::getInstances(get_called_class());

        return isset($instances[$enumName])
            ? $instances[$enumName]
            : null;
    }
public static final function byName($enumName)
    {
        $instances = self::getInstances(get_called_class());

        return isset($instances[$enumName])
            ? $instances[$enumName]
            : null;
    }
public static final function byName ( $ enumName ) { $ instances = self :: getInstances ( get_called_class ( ) ) ; return isset ( $ instances [ $ enumName ] ) ? $ instances [ $ enumName ] : null ; }
Returns the enum value instance representing the provided const name or null when the const name is not present in
the enum.

@param string $enumName

@return Enum
Returns the enum value instance representing the provided const name or null when the const name is not present in the enum .