src/LdapTools/AttributeConverter/ConvertGroupMembership.php
protected function createOperationsFromValues(array $values)
    {
        // In the case of a 'set' or 'reset' operation all current group membership should be removed.
        if ($this->shouldRemoveCurrentGroups()) {
            $this->removeCurrentGroups();
        }
        // Only if this is not a reset operation, otherwise there is nothing left to do.
        if (!($this->getOperationType() == AttributeConverterInterface::TYPE_MODIFY && $this->getBatch()->isTypeRemoveAll())) {
            $batchType = $this->getBatchTypeForOperation();
            foreach ($values as $value) {
                $this->addOperation(parent::toLdap($value), $batchType);
            }
        }
    }
protected function createOperationsFromValues(array $values)
    {
        // In the case of a 'set' or 'reset' operation all current group membership should be removed.
        if ($this->shouldRemoveCurrentGroups()) {
            $this->removeCurrentGroups();
        }
        // Only if this is not a reset operation, otherwise there is nothing left to do.
        if (!($this->getOperationType() == AttributeConverterInterface::TYPE_MODIFY && $this->getBatch()->isTypeRemoveAll())) {
            $batchType = $this->getBatchTypeForOperation();
            foreach ($values as $value) {
                $this->addOperation(parent::toLdap($value), $batchType);
            }
        }
    }
protected function createOperationsFromValues ( array $ values ) { // In the case of a 'set' or 'reset' operation all current group membership should be removed. if ( $ this -> shouldRemoveCurrentGroups ( ) ) { $ this -> removeCurrentGroups ( ) ; } // Only if this is not a reset operation, otherwise there is nothing left to do. if ( ! ( $ this -> getOperationType ( ) == AttributeConverterInterface :: TYPE_MODIFY && $ this -> getBatch ( ) -> isTypeRemoveAll ( ) ) ) { $ batchType = $ this -> getBatchTypeForOperation ( ) ; foreach ( $ values as $ value ) { $ this -> addOperation ( parent :: toLdap ( $ value ) , $ batchType ) ; } } }
Given the set of array values create the correct operation.

@param array $values
@throws \LdapTools\Exception\AttributeConverterException
Given the set of array values create the correct operation .