Documentation

BSONDocument extends ArrayObject
in package
implements JsonSerializable, Serializable, Unserializable

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.

Interfaces, Classes, Traits and Enums

JsonSerializable
Serializable
Unserializable

Table of Contents

__clone()  : mixed
Deep clone this BSONDocument.
__construct()  : mixed
This overrides the parent constructor to allow property access of entries by default.
__set_state()  : self
Factory method for var_export().
bsonSerialize()  : object
Serialize the document to BSON.
bsonUnserialize()  : mixed
Unserialize the document to BSON.
jsonSerialize()  : object
Serialize the array to JSON.

Methods

__clone()

Deep clone this BSONDocument.

public __clone() : mixed
Return values
mixed

__construct()

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

public __construct([array<string|int, mixed> $input = [] ][, int $flags = ArrayObject::ARRAY_AS_PROPS ][, string $iteratorClass = 'ArrayIterator' ]) : mixed
Parameters
$input : array<string|int, mixed> = []
$flags : int = ArrayObject::ARRAY_AS_PROPS
$iteratorClass : string = 'ArrayIterator'
Tags
see
http://php.net/arrayobject.construct
Return values
mixed

Search results