final class Blob implements Value (View source)

A PHP representation of the CQL blob datatype

Methods

__construct(string $bytes)

Creates a new bytes array.

string
__toString()

Returns bytes as a hex string.

type()

The type of this blob.

string
bytes()

Returns bytes as a hex string.

string
toBinaryString()

Returns bytes as a binary string.

Details

__construct(string $bytes)

Creates a new bytes array.

Parameters

string $bytes

any bytes

string __toString()

Returns bytes as a hex string.

Return Value

string

bytes as hexadecimal string

Type type()

The type of this blob.

Return Value

Type

string bytes()

Returns bytes as a hex string.

Return Value

string

bytes as hexadecimal string

string toBinaryString()

Returns bytes as a binary string.

Return Value

string

bytes as binary string