LdapTools\Operation\Invoker\LdapOperationInvoker::getLogObject PHP Method

getLogObject() protected method

Construct the LogOperation object for the operation.
protected getLogObject ( LdapTools\Operation\LdapOperationInterface $operation ) : LogOperation | null
$operation LdapTools\Operation\LdapOperationInterface
return LdapTools\Log\LogOperation | null
    protected function getLogObject(LdapOperationInterface $operation)
    {
        if (!$this->logger) {
            return null;
        }
        return (new LogOperation($operation))->setDomain($this->connection->getConfig()->getDomainName());
    }