LdapTools\Hydrator\OperationHydrator::hydrateOperation PHP Method

hydrateOperation() protected method

protected hydrateOperation ( LdapTools\Operation\LdapOperationInterface $operation ) : LdapTools\Operation\LdapOperationInterface
$operation LdapTools\Operation\LdapOperationInterface
return LdapTools\Operation\LdapOperationInterface
    protected function hydrateOperation(LdapOperationInterface $operation)
    {
        if ($operation instanceof BatchModifyOperation) {
            $this->setOperationType(AttributeConverterInterface::TYPE_MODIFY);
            $this->hydrateModifyOperation($operation);
        } elseif ($operation instanceof AddOperation) {
            $this->setOperationType(AttributeConverterInterface::TYPE_CREATE);
            $this->hydrateAddOperation($operation);
        } elseif ($operation instanceof QueryOperation) {
            $this->setOperationType(AttributeConverterInterface::TYPE_SEARCH_TO);
            $this->hydrateQueryOperation($operation);
        }
        return $operation;
    }