LdapTools\Operation\BatchModifyOperation::getBatchCollection PHP Method

getBatchCollection() public method

The batch modifications array for a modify operation.
public getBatchCollection ( ) : BatchCollection | null
return LdapTools\BatchModify\BatchCollection | null
    public function getBatchCollection()
    {
        return $this->properties['batch'];
    }

Usage Example

 /**
  * @param BatchModifyOperation $operation
  * @return 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;
 }
All Usage Examples Of LdapTools\Operation\BatchModifyOperation::getBatchCollection