(mongodb >=1.7.0)
MongoDB\Driver\ReadPreference::serialize — Serialize a ReadPreference
Această funcție nu are parametri.
Returns the serialized representation of the MongoDB\Driver\ReadPreference.