================================== MongoDB\\Client::getWriteConcern() ================================== .. versionadded:: 1.2 .. default-domain:: mongodb .. contents:: On this page :local: :backlinks: none :depth: 1 :class: singlecol Definition ---------- .. phpmethod:: MongoDB\\Client::getWriteConcern() Returns the write concern for this client. .. code-block:: php function getWriteConcern(): MongoDB\Driver\WriteConcern Return Values ------------- A :php:`MongoDB\\Driver\\WriteConcern ` object. Example ------- .. code-block:: php true, ]); var_dump($client->getWriteConcern()); The output would then resemble:: object(MongoDB\Driver\WriteConcern)#4 (1) { ["j"]=> bool(true) } See Also -------- - :manual:`Write Concern ` in the MongoDB manual - :php:`MongoDB\\Driver\\WriteConcern::isDefault() ` - :phpmethod:`MongoDB\\Collection::getWriteConcern()` - :phpmethod:`MongoDB\\Database::getWriteConcern()` - :phpmethod:`MongoDB\\GridFS\\Bucket::getWriteConcern()`