MongoDB\Client::getWriteConcern()
On this page
New in version 1.2.
Definition
Return Values
A MongoDB\Driver\WriteConcern object.
Example
$client = new MongoDB\Client('mongodb://127.0.0.1/', [ 'journal' => true, ]); var_dump($client->getWriteConcern());
The output would then resemble:
object(MongoDB\Driver\WriteConcern)#4 (1) { ["j"]=> bool(true) }