PHP 8.5.0 Alpha 2 available for testing

MongoDB\Driver\Server::getType

(mongodb >=1.0.0)

MongoDB\Driver\Server::getTypeDevuelve un integer que representa el tipo del servidor

Descripción

final public MongoDB\Driver\Server::getType(): int

Devuelve un entero 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 entero que representa el tipo del servidor.

Errores/Excepciones

  • Lanza una excepción MongoDB\Driver\InvalidArgumentException en caso de error durante el análisis de un argumento.

Ver también

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top