LdapTools\Hydrator\OperationHydrator::hydrateModifyOperation PHP Method

hydrateModifyOperation() protected method

protected hydrateModifyOperation ( BatchModifyOperation $operation ) : BatchModifyOperation
$operation LdapTools\Operation\BatchModifyOperation
return LdapTools\Operation\BatchModifyOperation
    protected function hydrateModifyOperation(BatchModifyOperation $operation)
    {
        $batches = $this->convertValuesToLdap($operation->getBatchCollection(), $operation->getDn());
        foreach ($batches as $batch) {
            /** @var \LdapTools\BatchModify\Batch $batch */
            $batch->setAttribute($this->schema->getAttributeToLdap($batch->getAttribute()));
        }
        return $operation;
    }