PHP 8.4.1 Released!

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, ArrayAccess, 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 offsetExists(mixed $key): bool
final public offsetGet(mixed $key): mixed
final public offsetSet(mixed $key, mixed $value): void
final public offsetUnset(mixed $key): void
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.

目录

添加备注

用户贡献的备注

此页面尚无用户贡献的备注。
To Top