public function merge(RouteTags $tags): self
    {
        $mergedTags = array_unique(array_merge($this->tags, $tags->tags));
        return new static($mergedTags);
    }
public function merge(RouteTags $tags): self
    {
        $mergedTags = array_unique(array_merge($this->tags, $tags->tags));
        return new static($mergedTags);
    }
public function merge ( RouteTags $ tags ) : self { $ mergedTags = array_unique ( array_merge ( $ this -> tags , $ tags -> tags ) ) ; return new static ( $ mergedTags ) ; }
Merges two instances of this class combining and unifying all tags

@param RouteTags $tags
@return RouteTags
Merges two instances of this class combining and unifying all tags