The MongoDB\BSON\Symbol class (deprecated)

(mongodb >=1.4.0)

Introduction

BSON type for the "Symbol" type. This BSON type is deprecated, and this class can not be instantiated. It will be created from a BSON symbol type while converting BSON to PHP, and can also be converted back into BSON while storing documents in the database.

Class synopsis

finalclassMongoDB\BSON\SymbolimplementsMongoDB\BSON\Type, Serializable, JsonSerializable, Stringable {
finalprivate__construct()
finalpublicjsonSerialize(): mixed
finalpublicserialize(): string
finalpublic__toString(): string
finalpublicunserialize(string$data): void
}

Changelog

VersionDescription
PECL mongodb 1.12.0 Implements Stringable for PHP 8.0+.

Table of Contents

To Top