applyIntersect() публичный Метод

Sets this index to all class names which are present currently and contained in the given index
public applyIntersect ( ClassNameIndex $classNameIndex ) : void
$classNameIndex ClassNameIndex
Результат void
 /**
  * @test
  */
 public function applyIntersectWorks()
 {
     $index1 = new Aop\Builder\ClassNameIndex();
     $index1->setClassNames(['\\Foo\\Bar', '\\Foo\\Baz']);
     $index2 = new Aop\Builder\ClassNameIndex();
     $index2->setClassNames(['\\Foo\\Baz', '\\Foo\\Blubb']);
     $index1->applyIntersect($index2);
     $this->assertEquals(['\\Foo\\Baz'], $index1->getClassNames());
 }