@@ -14,7 +14,8 @@ public function __construct($stream)
1414 $ this ->stream = $ stream ;
1515 }
1616
17- public function serverOpening (MongoDB \Driver \Monitoring \ServerOpeningEvent $ event ): void {
17+ public function serverOpening (MongoDB \Driver \Monitoring \ServerOpeningEvent $ event ): void
18+ {
1819 fprintf (
1920 $ this ->stream ,
2021 'Server opening on %s:%s\n ' ,
@@ -23,14 +24,37 @@ public function serverOpening(MongoDB\Driver\Monitoring\ServerOpeningEvent $even
2324 );
2425 }
2526
26- public function serverClosed (MongoDB \Driver \Monitoring \ServerClosedEvent $ event ): void {}
27- public function serverChanged (MongoDB \Driver \Monitoring \ServerChangedEvent $ event ): void {}
28- public function serverHeartbeatFailed (MongoDB \Driver \Monitoring \ServerHeartbeatFailedEvent $ event ): void {}
29- public function serverHeartbeatStarted (MongoDB \Driver \Monitoring \ServerHeartbeatStartedEvent $ event ): void {}
30- public function serverHeartbeatSucceeded (MongoDB \Driver \Monitoring \ServerHeartbeatSucceededEvent $ event ): void {}
31- public function topologyChanged (MongoDB \Driver \Monitoring \TopologyChangedEvent $ event ): void {}
32- public function topologyClosed (MongoDB \Driver \Monitoring \TopologyClosedEvent $ event ): void {}
33- public function topologyOpening (MongoDB \Driver \Monitoring \TopologyOpeningEvent $ event ): void {}
27+ public function serverClosed (MongoDB \Driver \Monitoring \ServerClosedEvent $ event ): void
28+ {
29+ }
30+
31+ public function serverChanged (MongoDB \Driver \Monitoring \ServerChangedEvent $ event ): void
32+ {
33+ }
34+
35+ public function serverHeartbeatFailed (MongoDB \Driver \Monitoring \ServerHeartbeatFailedEvent $ event ): void
36+ {
37+ }
38+
39+ public function serverHeartbeatStarted (MongoDB \Driver \Monitoring \ServerHeartbeatStartedEvent $ event ): void
40+ {
41+ }
42+
43+ public function serverHeartbeatSucceeded (MongoDB \Driver \Monitoring \ServerHeartbeatSucceededEvent $ event ): void
44+ {
45+ }
46+
47+ public function topologyChanged (MongoDB \Driver \Monitoring \TopologyChangedEvent $ event ): void
48+ {
49+ }
50+
51+ public function topologyClosed (MongoDB \Driver \Monitoring \TopologyClosedEvent $ event ): void
52+ {
53+ }
54+
55+ public function topologyOpening (MongoDB \Driver \Monitoring \TopologyOpeningEvent $ event ): void
56+ {
57+ }
3458}
3559// end-mysubscriber
3660
0 commit comments