LdapTools\Resolver\BatchValueResolver::validateBatchAggregate PHP Метод

validateBatchAggregate() защищенный Метод

When aggregating a set of values they need to be modified with 'set'. The other methods ('reset', 'add', or 'remove') are not valid. Additionally, all batch modification array keys should be present. However, the converter can determine whether the batch operation is valid with the 'isBatchSupported()' method.
protected validateBatchAggregate ( Batch $batch, LdapTools\AttributeConverter\AttributeConverterInterface $converter )
$batch LdapTools\BatchModify\Batch
$converter LdapTools\AttributeConverter\AttributeConverterInterface
    protected function validateBatchAggregate(Batch $batch, AttributeConverterInterface $converter)
    {
        if (!$converter->isBatchSupported($batch)) {
            throw new LogicException(sprintf('Unable to modify "%s". The "%s" action is not allowed.', $batch->getAttribute(), array_search($batch->getModType(), Batch::TYPE)));
        }
    }