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;
}