public function intersect(ClassNameIndex $classNameIndex): ClassNameIndex
    {
        return new ClassNameIndex(array_intersect_key($this->classNames, $classNameIndex->classNames));
    }
public function intersect(ClassNameIndex $classNameIndex): ClassNameIndex
    {
        return new ClassNameIndex(array_intersect_key($this->classNames, $classNameIndex->classNames));
    }
public function intersect ( ClassNameIndex $ classNameIndex ) : ClassNameIndex { return new ClassNameIndex ( array_intersect_key ( $ this -> classNames , $ classNameIndex -> classNames ) ) ; }
Returns a new index object with all class names contained in this and
the given index

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