|
MongoDB\Driver\Manager::getReadConcernReturn the ReadConcern for the Manager Description
final public MongoDB\Driver\ReadConcern MongoDB\Driver\Manager::getReadConcern
( void
)
Returns the MongoDB\Driver\ReadConcern for the Manager, which is derived from its URI options. This is the default read concern for queries and commands executed on the Manager. ParametersThis function has no parameters. Return ValuesThe MongoDB\Driver\ReadConcern for the Manager. Errors/Exceptions
ExamplesExample #1 MongoDB\Driver\Manager::getReadConcern example
<?php The above example will output something similar to: object(MongoDB\Driver\ReadConcern)#2 (0) { } object(MongoDB\Driver\ReadConcern)#1 (1) { ["level"]=> string(5) "local" } See Also
|