PHP - Manual: MongoDB\Driver\Monitoring\CommandSubscriber::commandSucceeded
2025-02-27
(mongodb >=1.3.0)
MongoDB\Driver\Monitoring\CommandSubscriber::commandSucceeded — Notification method for a successful command
$event
): voidIf the subscriber is registered, this method is called when a command succeeds.
event
(MongoDB\Driver\Monitoring\CommandSucceededEvent)An event object encapsulating information about the successful command.
没有返回值。
官方地址:https://www.php.net/manual/en/mongodb-driver-monitoring-commandsubscriber.commandsucceeded.php