final class Undefined implements JsonSerializable, Type, Stringable (View source)

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

Methods

mixed
jsonSerialize()

Returns a representation that can be converted to JSON

string
__toString()

Returns the Undefined as a string

Details

final mixed jsonSerialize()

Since: 1.2.0

Returns a representation that can be converted to JSON

Return Value

mixed

data which can be serialized by json_encode, which is a value of any type other than a resource.

Exceptions

InvalidArgumentException

final string __toString()

Returns the Undefined as a string

Return Value

string

Returns string representation of the object that implements this interface (and/or "__toString" magic method).