public function setReadPreference($readPreference, array $tags = null) { $this->query['readPreference'] = $readPreference; $this->query['readPreferenceTags'] = $tags; return $this; }