The MongoDB\BSON\Document class

(mongodb >=1.16.0)

はじめに

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

クラス概要

final class MongoDB\BSON\Document implements MongoDB\BSON\Type, IteratorAggregate, Serializable {
/* メソッド */
final private __construct()
final static public fromBSON(string $bson): MongoDB\BSON\Document
final static public fromJSON(string $json): MongoDB\BSON\Document
final static public fromPHP(object|array $value): MongoDB\BSON\Document
final public get(string $key): mixed
final public has(string $key): bool
final public serialize(): string
final public toPHP(?array $typeMap = null): array|object
final public __toString(): string
final public unserialize(string $data): void
}

変更履歴

バージョン 説明
PECL mongodb 1.17.0 Implements MongoDB\BSON\Type.

目次

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top