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

MongoDB\Driver\Monitoring\CommandSucceededEvent::getHost

(mongodb >=1.20.0)

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

Опис

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

Параметри

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

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

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

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

To Top