public function firstOf(int $tag): GeneralName
    {
        $name = $this->_findFirst($tag);
        if (!$name) {
            throw new \UnexpectedValueException("No GeneralName by tag $tag.");
        }
        return $name;
    }
public function firstOf(int $tag): GeneralName
    {
        $name = $this->_findFirst($tag);
        if (!$name) {
            throw new \UnexpectedValueException("No GeneralName by tag $tag.");
        }
        return $name;
    }
public function firstOf ( int $ tag ) : GeneralName { $ name = $ this -> _findFirst ( $ tag ) ; if ( ! $ name ) { throw new \ UnexpectedValueException ( "No GeneralName by tag $tag." ) ; } return $ name ; }
Get first GeneralName of given type.

@param int $tag One of <code>GeneralName::TAG_*</code> enumerations
@throws \OutOfBoundsException
@return GeneralName
Get first GeneralName of given type .