Home/
Manual/
monitoring / serverheartbeatstartedevent/ MongoDB\Driver\Monitoring\ServerHeartbeatStartedEvent::getPort
MongoDB\Driver\Monitoring\ServerHeartbeatStartedEvent::getPort
PHP function
Edit on GitHub ✎
(mongodb >=1.13.0)
Returns the port on which this server is listening
Description
MongoDB\Driver\Monitoring\ServerHeartbeatStartedEvent::getPort(): int
Parameters Parameters
Return Values
Returns the port on which this server is listening.