class MongoBinData (View source)

Constants

GENERIC

Generic binary data.

FUNC

Function

BYTE_ARRAY

Generic binary data (deprecated in favor of MongoBinData::GENERIC)

UUID

Universally unique identifier (deprecated in favor of MongoBinData::UUID_RFC4122)

UUID_RFC4122

Universally unique identifier (according to ยป RFC 4122)

MD5

MD5

CUSTOM

User-defined type

Properties

string $bin
int $type

Methods

__construct(string $data, int $type = 2)

Creates a new binary data object.

string
__toString()

Returns the string representation of this binary data object.

Details

__construct(string $data, int $type = 2)

Creates a new binary data object.

Parameters

string $data

Binary data

int $type

Data type

string __toString()

Returns the string representation of this binary data object.

Return Value

string