abstract public array|object MongoDB\BSON\Serializable::bsonSerialize    ( void   )

MongoDB\BSON\Serializable::bsonSerializeProvides an array or document to serialize as BSON