protected function createWriteConcernFromParameters($wstring, $wtimeout)
{
if (!is_string($wstring) && !is_int($wstring)) {
trigger_error("w for WriteConcern must be a string or integer", E_WARNING);
return false;
}
// Ensure wtimeout is not < 0
return new \MongoDB\Driver\WriteConcern($wstring, max($wtimeout, 0));
}