public function union(ClassNameIndex $classNameIndex): ClassNameIndex
    {
        $result = clone $classNameIndex;
        $result->applyUnion($this);
        return $result;
    }
public function union(ClassNameIndex $classNameIndex): ClassNameIndex
    {
        $result = clone $classNameIndex;
        $result->applyUnion($this);
        return $result;
    }
public function union ( ClassNameIndex $ classNameIndex ) : ClassNameIndex { $ result = clone $ classNameIndex ; $ result -> applyUnion ( $ this ) ; return $ result ; }
Returns a new index object containing all class names of
this index and the given one

@param \Neos\Flow\Aop\Builder\ClassNameIndex $classNameIndex
@return \Neos\Flow\Aop\Builder\ClassNameIndex A new index object
Returns a new index object containing all class names of this index and the given one