public function setWriteConcern($w, $timeout = 10000)
    {
        if (!$this->getMongoClient()->setWriteConcern($w, (int) $timeout)) {
            throw new Exception('Error setting write concern');
        }
        
        return $this;
    }
public function setWriteConcern($w, $timeout = 10000)
    {
        if (!$this->getMongoClient()->setWriteConcern($w, (int) $timeout)) {
            throw new Exception('Error setting write concern');
        }
        
        return $this;
    }
public function setWriteConcern ( $ w , $ timeout = 10000 ) { if ( ! $ this -> getMongoClient ( ) -> setWriteConcern ( $ w , ( int ) $ timeout ) ) { throw new Exception ( 'Error setting write concern' ) ; } return $ this ; }
Define write concern on whole requests

@param string|integer $w write concern
@param int $timeout timeout in milliseconds
@return \Sokil\Mongo\Client

@throws \Sokil\Mongo\Exception
Define write concern on whole requests