php8.5
Home/ Manual/ driver / server/ MongoDB\Driver\Server::getServerDescription

MongoDB\Driver\Server::getServerDescription

PHP function Edit on GitHub ✎

(mongodb >=1.13.0)

Returns a ServerDescription for this server

Description

MongoDB\Driver\Server::getServerDescription(): MongoDB\Driver\ServerDescription

Returns a MongoDB\Driver\ServerDescription for this server. This is an immutable value object that will describe the server at the time this method is called.

Parameters Parameters

Return Values

Returns a MongoDB\Driver\ServerDescription for this server.

Errors/Exceptions

Source: reference/mongodb/mongodb/driver/server/getserverdescription.xml · from the official PHP manual (php/doc-en)