public getWriteConcern ( ) : MongoDB\Driver\WriteConcern | null | ||
리턴 | MongoDB\Driver\WriteConcern | null | write concern to be used in this command. |
public function getWriteConcern()
{
if ($this->_writeConcern !== null) {
if (is_scalar($this->_writeConcern)) {
$this->_writeConcern = new WriteConcern($this->_writeConcern);
}
}
return $this->_writeConcern;
}