MongoDB\Driver\ServerDescription::getHost

(mongodb >=1.13.0)

MongoDB\Driver\ServerDescription::getHostReturns the hostname of this server

Descripción

finalpublicMongoDB\Driver\ServerDescription::getHost(): string

Returns the hostname of this server.

Parámetros

Esta función no tiene parámetros.

Valores devueltos

Returns the hostname of this server.

Errores/Excepciones

Ver también

To Top