버전 1.2에 추가 되었습니다.:
정의
Return Values
예시
$collection = (new MongoDB\Client)->getCollection('test', 'users', [ 'writeConcern' => new MongoDB\Driver\WriteConcern(1, 0, true), ]); var_dump($collection->getWriteConcern());
이 경우 출력은 다음과 유사합니다:
object(MongoDB\Driver\WriteConcern)#5 (2) { ["w"]=> int(1) ["j"]=> bool(true) }
다음도 참조하세요.
MongoDB 매뉴얼에 우려 사항 작성