« MongoDB\Driver\ServerApi::bsonSerialize
MongoDB\Driver\WriteConcern »

MongoDB\Driver\ServerApi::__construct

(mongodb >=1.10.0)

MongoDB\Driver\ServerApi::__construct — Create a new ServerApi instance

説明

final public function MongoDB\Driver\ServerApi::__construct(string $version, ?bool $strict = null, ?bool $deprecationErrors = null)

Creates a new MongoDB\Driver\ServerApi instance used to declare an API version when creating a MongoDB\Driver\Manager.

パラメータ

version

A server API version.

Supported API versions are provided as constants in MongoDB\Driver\ServerApi. The only supported API version is MongoDB\Driver\ServerApi::V1.

strict

If the strict parameter is set to true, the server will yield an error for any command that is not part of the specified API version. If no value is provided, the server default value (false) is used.

deprecationErrors

If the deprecationErrors parameter is set to true, the server will yield an error when using a command that is deprecated in the specified API version. If no value is provided, the server default value (false) is used.

関連キーワード:
ServerApi   MongoDB   Driver   server   instance   Create   construct   strict   deprecationErrors   used   provided   parameter   yield   command   specified   default   bsonSerialize   WriteConcern   mongodb   final   Creates   declare   creating   Manager   Supported
関連する関数・ページ:
mongodb-driver-serverapi.bsonserialize   class.mongodb-driver-serverapi   mongodb.mongodb   mongodb-driver-server.construct   mongodb-driver-server.getserverdescription   mongodb-driver-server.gethost