MongoDB\Driver\Monitoring\CommandSucceededEvent::getServer
(mongodb >=1.3.0)
Returns the Server on which the command was executed
This method has been DEPRECATED as of extension version 1.20.0 and was removed in 2.0. Applications should use MongoDB\Driver\Monitoring\CommandSucceededEvent::getHost and MongoDB\Driver\Monitoring\CommandSucceededEvent::getPort instead.
Description
Returns the MongoDB\Driver\Server on which the command was executed.
Parameters Parameters
Return Values
Returns the MongoDB\Driver\Server on which the command was executed.
Errors/Exceptions
Changelog
| Version | Description |
|---|
See Also
MongoDB\Driver\Monitoring\CommandStartedEvent::getServerMongoDB\Driver\Cursor::getServerMongoDB\Driver\WriteResult::getServer- mongodb.tutorial.apm