public function getReadPreference() { if ($this->cursor) { return $this->cursor->getReadPreference(); } return $this->readPreference; }