(mongodb >=1.10.0)
MongoDB\Driver\ServerApi::__construct — Create a new ServerApi instance
$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.
versionMongoDB\Driver\ServerApi::V1.
strictstrict 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.
deprecationErrorsdeprecationErrors 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.