The MongoDB\Driver\Monitoring\ServerChangedEvent class
(mongodb >=1.13.0)
Giriş
The MongoDB\Driver\Monitoring\ServerChangedEvent
class encapsulates information about a changed server description. For
example, a server's type changing from secondary to primary would cause its
server description to change.