2024 年 PHP Conference Japan

MongoDB\Driver\Monitoring\CommandFailedEvent::getServer

(mongodb >=1.3.0)

MongoDB\Driver\Monitoring\CommandFailedEvent::getServer傳回執行指令的伺服器

警告

此方法自擴充版本 1.20.0 起已遭 *棄用*,並將於 2.0 中移除。應用程式應改用 MongoDB\Driver\Monitoring\CommandFailedEvent::getHost()MongoDB\Driver\Monitoring\CommandFailedEvent::getPort()

說明

final public MongoDB\Driver\Monitoring\CommandFailedEvent::getServer(): MongoDB\Driver\Server

返回執行指令的 MongoDB\Driver\Server 物件。

參數

此函式沒有參數。

回傳值

返回執行指令的 MongoDB\Driver\Server 物件。

錯誤/例外

新增註解

使用者貢獻的註解

此頁面沒有使用者貢獻的註解。
To Top