MongoDB\BSON\Document::fromBSONConstruct a new document instance from a BSON string
&reftitle.description;
finalstaticpublicMongoDB\BSON\DocumentMongoDB\BSON\Document::fromBSONstringbson
&reftitle.parameters;
bson (string)
A string containing a document in BSON format.
&reftitle.returnvalues;
Returns a new MongoDB\BSON\Document instance.
&reftitle.errors;
&mongodb.throws.argumentparsing;
Throws MongoDB\Driver\Exception\UnexpectedValueException if bson is an invalid BSON string or contains more than a single document.
&reftitle.seealso;
MongoDB\BSON\Document::fromPHPMongoDB\BSON\Document::fromJSONBSON Types