PHP 8.4.2 Released!

la classe MongoDB\BSON\Document

(mongodb >=1.16.0)

Introduction

Représente un document BSON. Cette classe est utilisée lors de la lecture de données en tant que BSON brut et ne peut pas être modifiée.

Synopsis de la classe

final class MongoDB\BSON\Document implements MongoDB\BSON\Type, ArrayAccess, IteratorAggregate, Serializable {
/* Méthodes */
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
}

Historique

Version Description
PECL mongodb 1.17.0 Implémente MongoDB\BSON\Type.

Sommaire

add a note

User Contributed Notes

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