setReadPreference() public method
Sets read preference for this command.
public $this setReadPreference ( $readPreference ) | ||
---|---|---|
$readPreference | \MongoDB\Driver\ReadPreference|integer|string|null |
Read reference, it can be specified as instance of \MongoDB\Driver\ReadPreference or scalar mode value, for example: |
return | $this |
Self reference. |
Please login to continue.