original_string: public function getSlaveOkay()
      {
          if (version_compare(phpversion('mongo'), '1.3.0', '<')) {
              return $this->riak->getSlaveOkay();
          }
  
          $readPref = $this->getReadPreference();
  
          return \RiakClient::RP_PRIMARY !== $readPref['type'];
      }
code: public function getSlaveOkay()
      {
          if (version_compare(phpversion('mongo'), '1.3.0', '<')) {
              return $this->riak->getSlaveOkay();
          }
  
          $readPref = $this->getReadPreference();
  
          return \RiakClient::RP_PRIMARY !== $readPref['type'];
      }
code_tokens: public function getSlaveOkay ( ) { if ( version_compare ( phpversion ( 'mongo' ) , '1.3.0' , '<' ) ) { return $ this -> riak -> getSlaveOkay ( ) ; } $ readPref = $ this -> getReadPreference ( ) ; return \ RiakClient :: RP_PRIMARY !== $ readPref [ 'type' ] ; }
docstring: Get whether secondary read queries are allowed for this database.
  
  This method wraps getSlaveOkay() for driver versions before 1.3.0. For
  newer drivers, this method considers any read preference other than
  PRIMARY as a true "slaveOkay" value.
  
  @see http://php.net/manual/en/mongodb.getreadpreference.php
  @see http://php.net/manual/en/mongodb.getslaveokay.php
  @return boolean
docstring_tokens: Get whether secondary read queries are allowed for this database .