Documentación offline PHP master

MongoDB\Driver\Server::getType

master Ver versión oficial en línea Licencia CC-BY-3.0Descargado el 2026-08-02

En esta página

MongoDB\Driver\Server::getType

Devuelve un integer que representa el tipo del servidor

Descripción#

php final public MongoDB\Driver\Server::getType(): intphp

Devuelve un int que representa el tipo del servidor. El valor corresponderá a una constante MongoDB\Driver\Server.

Parámetros#

Esta función no contiene ningún parámetro.

Valores devueltos#

Devuelve un int que representa el tipo del servidor.

Errores/Excepciones#

Lanza una excepción

MongoDB\Driver\Exception\InvalidArgumentException

en caso de error durante el análisis de un argumento.

Véase también#

MongoDB\Driver\Server::getInfo

MongoDB\Driver\ServerDescription::getType