Skip to content

Latest commit

 

History

History
179 lines (73 loc) · 2.09 KB

BSONDocument.md

File metadata and controls

179 lines (73 loc) · 2.09 KB

BSONDocument

Model class for a BSON document.

The internal data will be cast to an object during BSON serialization to ensure that it becomes a BSON document.

Methods

__clone

Deep clone this BSONDocument.

public __clone(): mixed

__construct

This overrides the parent constructor to allow property access of entries by default.

public __construct(array $input = [], int $flags = ArrayObject::ARRAY_AS_PROPS, string $iteratorClass = 'ArrayIterator'): mixed

Parameters:

Parameter Type Description
$input array
$flags int
$iteratorClass string

See Also:


__set_state

Factory method for var_export().

public static __set_state(array $properties): self
  • This method is static.

Parameters:

Parameter Type Description
$properties array

See Also:


bsonSerialize

Serialize the document to BSON.

public bsonSerialize(): object

See Also:


bsonUnserialize

Unserialize the document to BSON.

public bsonUnserialize(array $data): mixed

Parameters:

Parameter Type Description
$data array Array data

See Also:


jsonSerialize

Serialize the array to JSON.

public jsonSerialize(): object

See Also: