LdapTools\Log\LogOperation::getOperation PHP Method

getOperation() public method

Get the LDAP operation represented for this log.
public getOperation ( ) : LdapTools\Operation\LdapOperationInterface
return LdapTools\Operation\LdapOperationInterface
    public function getOperation()
    {
        return $this->operation;
    }

Usage Example

 function it_should_call_the_stopwatch_and_logger_on_start($stopwatch, $logger)
 {
     $log = new LogOperation((new DeleteOperation('foo'))->setServer('foo'));
     $log->setDomain('foo');
     $stopwatch->start('ldaptools', strtolower($log->getOperation()->getName()))->shouldBeCalled();
     $logger->debug("(foo on foo) Start Delete Operation - DN: foo, Controls: array (\n)")->shouldBeCalled();
     $this->start($log);
 }
All Usage Examples Of LdapTools\Log\LogOperation::getOperation