MongoDB\Driver\CursorInterface::getServer

Returns the server associated with this cursor

説明

abstract public MongoDB\Driver\Server MongoDB\Driver\CursorInterface::getServer()

Returns the MongoDB\Driver\Server associated with this cursor. This is the server that executed the MongoDB\Driver\Query or MongoDB\Driver\Command.

パラメータ

この関数にはパラメータはありません。

戻り値

Returns the MongoDB\Driver\Server associated with this cursor.

エラー / 例外

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

参考

  • MongoDB\Driver\Cursor::getServer
  • MongoDB\Driver\Server