Mongolid\ActiveRecord::getWriteConcern PHP Method

getWriteConcern() public method

Getter for $writeConcern variable.
public getWriteConcern ( ) : mixed
return mixed
    public function getWriteConcern()
    {
        return $this->writeConcern;
    }

Usage Example

 public function testShouldGetSetWriteConcernInActiveRecordClass()
 {
     $this->assertEquals(1, $this->entity->getWriteConcern());
     $this->assertEquals(1, $this->entity->getWriteConcern());
     $this->entity->setWriteConcern(0);
     $this->assertEquals(0, $this->entity->getWriteConcern());
 }