MongoDB\Driver\Monitoring\CommandFailedEvent::getHost
PHP Manual
PHP Manual»MongoDB\Driver\Monitoring\CommandFailedEvent»MongoDB\Driver\Monitoring\CommandFailedEvent::getHost

MongoDB\Driver\Monitoring\CommandFailedEvent::getHost

(mongodb >=1.20.0)

MongoDB\Driver\Monitoring\CommandFailedEvent::getHostReturns the server hostname for the command

Опис

final public function MongoDB\Driver\Monitoring\CommandFailedEvent::getHost(): string

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

Returns the hostname of the server on which the command was executed.

Помилки/виключення

To Top