public function allOf(int $tag): array
    {
        $names = array_filter($this->_names,
            function (GeneralName $name) use ($tag) {
                return $name->tag() == $tag;
            });
        return array_values($names);
    }
public function allOf(int $tag): array
    {
        $names = array_filter($this->_names,
            function (GeneralName $name) use ($tag) {
                return $name->tag() == $tag;
            });
        return array_values($names);
    }
public function allOf ( int $ tag ) : array { $ names = array_filter ( $ this -> _names , function ( GeneralName $ name ) use ( $ tag ) { return $ name -> tag ( ) == $ tag ; } ) ; return array_values ( $ names ) ; }
Get all GeneralName objects of given type.

@param int $tag One of <code>GeneralName::TAG_*</code> enumerations
@return GeneralName[]
Get all GeneralName objects of given type .