MongoDB\Driver\ServerApi::__construct
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
MongoDB\Driver\ServerApi::__construct
Референца за `mongodb-driver-serverapi.construct.php` со подобрена типографија и навигација.
MongoDB\Driver\ServerApi::__construct
(mongodb >=1.10.0)
MongoDB\Driver\ServerApi::__construct — Create a new ServerApi instance
= NULL
$version, ?bool $strict = null, ?bool $deprecationErrors = null)Создава нов 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-
Ако
strictпараметар е поставен на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-
Ако
deprecationErrorsпараметар е поставен на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.