Get currently active write concern on all requests to collection
public getWriteConcern ( ) : integer | string | ||
Результат | integer | string | write concern |
public function testSetMajorityWriteConcern() { $this->collection->setMajorityWriteConcern(13000); $this->assertEquals(array('w' => 'majority', 'wtimeout' => 13000), $this->collection->getWriteConcern()); }