The MongoDB\BSON\Serializable interface

(mongodb >=1.0.0)

はじめに

Classes that implement this interface may return data to be serialized as a BSON array or document in lieu of the object's public properties.

インターフェイス概要

class MongoDB\BSON\Serializable implements MongoDB\BSON\Type {
/* メソッド */
abstract public bsonSerialize(): array|object
}

目次

関連キーワード:  BSON, Serializable, array, bsonSerialize, public, document, return, data, serialized, implement