(mongodb >=1.13.0)
MongoDB\Driver\Monitoring\ServerClosedEvent::getPort — Returns the port on which this server is listening
この関数にはパラメータはありません。
Returns the port on which this server is listening.