public static function valueOf($name)
    {
        $names = static::getNames();
        return isset($names[$name]) ? $names[$name] : null;
    }
public static function valueOf($name)
    {
        $names = static::getNames();
        return isset($names[$name]) ? $names[$name] : null;
    }
public static function valueOf ( $ name ) { $ names = static :: getNames ( ) ; return isset ( $ names [ $ name ] ) ? $ names [ $ name ] : null ; }
Gets the enum value for the name

@return mixed value of
Gets the enum value for the name