MongoDB\Driver\Server::getType
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