Home/
Manual/
monitoring / commandstartedevent/ MongoDB\Driver\Monitoring\CommandStartedEvent::getPort
MongoDB\Driver\Monitoring\CommandStartedEvent::getPort
PHP function
Edit on GitHub ✎
(mongodb >=1.20.0)
Returns the server port for the command
Description
MongoDB\Driver\Monitoring\CommandStartedEvent::getPort(): int
Parameters Parameters
Return Values
Returns the port of the server on which the command was executed.