From c79c077e25e6c5b370a9d86047863f0dd8b9b153 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Mon, 15 Jul 2024 13:48:39 +0200 Subject: [PATCH] Add comment --- src/Connection.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Connection.php b/src/Connection.php index 343c0ca21..685e509b6 100644 --- a/src/Connection.php +++ b/src/Connection.php @@ -327,6 +327,12 @@ public function __call($method, $parameters) return $this->db->$method(...$parameters); } + /** + * Return the server version of one of the MongoDB servers: primary for + * replica sets and standalone, and the selected server for sharded clusters. + * + * @internal + */ public function getServerVersion(): string { return $this->db->command(['buildInfo' => 1])->toArray()[0]['version'];