public function applyUnion(ClassNameIndex $classNameIndex): void
    {
        if (count($this->classNames) > count($classNameIndex->classNames)) {
            foreach ($classNameIndex->classNames as $className => $value) {
                $this->classNames[$className] = true;
            }
        } else {
            $unionClassNames = $classNameIndex->classNames;
            foreach ($this->classNames as $className => $value) {
                $unionClassNames[$className] = true;
            }
            $this->classNames = $unionClassNames;
        }
    }
public function applyUnion(ClassNameIndex $classNameIndex): void
    {
        if (count($this->classNames) > count($classNameIndex->classNames)) {
            foreach ($classNameIndex->classNames as $className => $value) {
                $this->classNames[$className] = true;
            }
        } else {
            $unionClassNames = $classNameIndex->classNames;
            foreach ($this->classNames as $className => $value) {
                $unionClassNames[$className] = true;
            }
            $this->classNames = $unionClassNames;
        }
    }
public function applyUnion ( ClassNameIndex $ classNameIndex ) : void { if ( count ( $ this -> classNames ) > count ( $ classNameIndex -> classNames ) ) { foreach ( $ classNameIndex -> classNames as $ className => $ value ) { $ this -> classNames [ $ className ] = true ; } } else { $ unionClassNames = $ classNameIndex -> classNames ; foreach ( $ this -> classNames as $ className => $ value ) { $ unionClassNames [ $ className ] = true ; } $ this -> classNames = $ unionClassNames ; } }
Sets this index to all class names which are either already present or are
contained in the given index

@param \Neos\Flow\Aop\Builder\ClassNameIndex $classNameIndex
@return void
Sets this index to all class names which are either already present or are contained in the given index