The MongoDB\BSON\Document class

(mongodb >=1.16.0)

Introduction

Represents a BSON document. This class is used when reading data as raw BSON and cannot be modified.

Class synopsis

finalclassMongoDB\BSON\DocumentimplementsMongoDB\BSON\Type, IteratorAggregate, Serializable {
finalprivate__construct()
finalstaticpublicfromBSON(string$bson): MongoDB\BSON\Document
finalstaticpublicfromJSON(string$json): MongoDB\BSON\Document
finalstaticpublicfromPHP(object|array$value): MongoDB\BSON\Document
finalpublicget(string$key): mixed
finalpublichas(string$key): bool
finalpublicserialize(): string
finalpublictoPHP(?array$typeMap = null): array|object
finalpublic__toString(): string
finalpublicunserialize(string$data): void
}

Changelog

VersionDescription
PECL mongodb 1.17.0 Implements MongoDB\BSON\Type.

Table of Contents

To Top