MongoDB\Driver\ReadPreference::serialize
(mongodb >=1.7.0)
MongoDB\Driver\ReadPreference::serialize — Serialize a ReadPreference
Description
Parameters
This function has no parameters.
Return Values
Returns the serialized representation of the MongoDB\Driver\ReadPreference.
Errors/Exceptions
- Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
See Also
- MongoDB\Driver\ReadPreference::unserialize() - Unserialize a ReadPreference
- serialize() - Generates a storable representation of a value
- Serializing Objects