* options * * * * Option * Type * Description * * * * * * * * readPreference * MongoDB\Driver\ReadPreference * *

* A read preference to use for selecting a server for the operation. *

* * * * session * MongoDB\Driver\Session * *

* A session to associate with the operation. *

* * * * * The third parameter is now an options array. For backwards compatibility, this parameter will still accept a MongoDB\Driver\ReadPreference object. * @throws InvalidArgumentException on argument parsing errors. * @throws ConnectionException if connection to the server fails (for reasons other than authentication). * @throws AuthenticationException if authentication is needed and fails. * @throws RuntimeException on other errors (e.g. invalid command, issuing a write command to a secondary). * @return Cursor */ final public function executeQuery($namespace, Query $zquery, $options = []) {} /** * Returns the hostname of this server * @link https://php.net/manual/en/mongodb-driver-server.gethost.php * @throws InvalidArgumentException on argument parsing errors. * @return string */ final public function getHost() {} /** * Returns an array of information about this server * @link https://php.net/manual/en/mongodb-driver-server.getinfo.php * @throws InvalidArgumentException on argument parsing errors. * @return array */ final public function getInfo() {} /** * Returns the latency of this server * @link https://php.net/manual/en/mongodb-driver-server.getlatency.php * @throws InvalidArgumentException on argument parsing errors. * @return int */ final public function getLatency() {} /** * Returns the port on which this server is listening * @link https://php.net/manual/en/mongodb-driver-server.getport.php * @throws InvalidArgumentException on argument parsing errors. * @return int */ final public function getPort() {} /** * Returns an array of tags describing this server in a replica set * @link https://php.net/manual/en/mongodb-driver-server.gettags.php * @throws InvalidArgumentException on argument parsing errors. * @return array An array of tags used to describe this server in a replica set. The array will contain zero or more string key and value pairs. */ final public function getTags() {} /** * Returns an integer denoting the type of this server * @link https://php.net/manual/en/mongodb-driver-server.gettype.php * @throws InvalidArgumentException on argument parsing errors. * @return int denoting the type of this server */ final public function getType() {} /** * Checks if this server is an arbiter member of a replica set * @link https://php.net/manual/en/mongodb-driver-server.isarbiter.php * @throws InvalidArgumentException on argument parsing errors. * @return bool */ final public function isArbiter() {} /** * Checks if this server is a hidden member of a replica set * @link https://php.net/manual/en/mongodb-driver-server.ishidden.php * @throws InvalidArgumentException on argument parsing errors. * @return bool */ final public function isHidden() {} /** * Checks if this server is a passive member of a replica set * @link https://php.net/manual/en/mongodb-driver-server.ispassive.php * @throws InvalidArgumentException on argument parsing errors. * @return bool */ final public function isPassive() {} /** * Checks if this server is a primary member of a replica set * @link https://php.net/manual/en/mongodb-driver-server.isprimary.php * @throws InvalidArgumentException on argument parsing errors. * @return bool */ final public function isPrimary() {} /** * Checks if this server is a secondary member of a replica set * @link https://php.net/manual/en/mongodb-driver-server.issecondary.php * @throws InvalidArgumentException on argument parsing errors. * @return bool */ final public function isSecondary() {} }