LdapTools\Log\LogOperation::setDomain PHP Méthode

setDomain() public méthode

Set the domain name that this log operation pertains to.
public setDomain ( string $domain )
$domain string
    public function setDomain($domain)
    {
        $this->domain = $domain;
        return $this;
    }

Usage Example

 function it_should_call_the_logger_error_method_when_the_log_contains_an_error($logger)
 {
     $log = new LogOperation((new DeleteOperation('foo'))->setServer('bar'));
     $log->setError('foo');
     $log->setDomain('foo.bar');
     $log->start()->stop();
     $logger->error('(foo.bar on bar) End Delete Operation - Error: foo, Completed in ' . round(($log->getStopTime() - $log->getStartTime()) * 1000) . " ms.")->shouldBeCalled();
     $this->start($log);
 }
All Usage Examples Of LdapTools\Log\LogOperation::setDomain