MongoDB\Driver\Server::getType

Returns an integer denoting the type of this server

Beschreibung

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

Returns an integer denoting the type of this server. The value will correlate with a MongoDB\Driver\Server constant.

Parameter-Liste

Diese Funktion hat keine Parameter.

Rückgabewerte

Returns an integer denoting the type of this server.

Fehler/Exceptions

  • Throws MongoDB\Driver\InvalidArgumentException on argument parsing errors.

Siehe auch

  • MongoDB\Driver\Server::getInfo