public function setReadPreference(?string $readPreference, array $tags) : void
    {
        $this->readPreference     = $readPreference;
        $this->readPreferenceTags = $tags;
    }
public function setReadPreference(?string $readPreference, array $tags) : void
    {
        $this->readPreference     = $readPreference;
        $this->readPreferenceTags = $tags;
    }
public function setReadPreference ( ? string $ readPreference , array $ tags ) : void { $ this -> readPreference = $ readPreference ; $ this -> readPreferenceTags = $ tags ; }
Sets the read preference used by this class.
Sets the read preference used by this class .