php8.5
Home/ Manual/ bson / document/ MongoDB\BSON\Document::__construct

MongoDB\BSON\Document::__construct

PHP function Edit on GitHub ✎

(mongodb >=1.16.0)

Construct a new BSON document (unused)

Description

MongoDB\BSON\Document::__construct()

MongoDB\BSON\Document objects are created through static factory methods and cannot be instantiated directly.

Parameters Parameters

See Also

  • MongoDB\BSON\Document::fromPHP
  • MongoDB\BSON\Document::fromBSON
  • MongoDB\BSON\Document::fromJSON
  • BSON Types

Source: reference/mongodb/bson/document/construct.xml · from the official PHP manual (php/doc-en)