File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change 88use MongoDB \Driver \Monitoring \CommandFailedEvent ;
99use MongoDB \Driver \Monitoring \CommandStartedEvent ;
1010use MongoDB \Driver \Monitoring \CommandSucceededEvent ;
11- use MongoDB \Driver \Server ;
1211use Throwable ;
1312
14- use function method_exists ;
15-
1613final class Command
1714{
1815 private CommandStartedEvent $ startedEvent ;
@@ -72,16 +69,6 @@ public function getRequestId(): string
7269 return $ this ->startedEvent ->getRequestId ();
7370 }
7471
75- /** @deprecated This method is failing with MongoDB Extension v2.0+, use getHost and getPort instead. */
76- public function getServer (): Server
77- {
78- if (! method_exists ($ this ->finishedEvent , 'getServer ' )) {
79- throw new LogicException ('getServer() is not available in MongoDB Extension v2.0+ ' );
80- }
81-
82- return $ this ->finishedEvent ->getServer ();
83- }
84-
8572 public function getPort (): int
8673 {
8774 return $ this ->finishedEvent ->getPort ();
You can’t perform that action at this time.
0 commit comments