MongoDB\Driver\ServerApi::bsonSerialize

Returns an object for BSON serialization

Description

final public stdClass MongoDB\Driver\ServerApi::bsonSerialize()

Parameters

This function has no parameters.

Return Values

Returns an object for serializing the ServerApi as BSON.

Errors/Exceptions

  • Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.

See Also

  • MongoDB\BSON\Serializable::bsonSerialize