Skip to content

Commit c79c077

Browse files
committed
Add comment
1 parent 3d1030a commit c79c077

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Connection.php

+6
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,12 @@ public function __call($method, $parameters)
327327
return $this->db->$method(...$parameters);
328328
}
329329

330+
/**
331+
* Return the server version of one of the MongoDB servers: primary for
332+
* replica sets and standalone, and the selected server for sharded clusters.
333+
*
334+
* @internal
335+
*/
330336
public function getServerVersion(): string
331337
{
332338
return $this->db->command(['buildInfo' => 1])->toArray()[0]['version'];

0 commit comments

Comments
 (0)