A PHP representation of the CQL blob datatype

Implements

Methods

__construct

( string $bytes )

Creates a new bytes array.

Parameters:
Name Type Details
$bytes string

any bytes

Cassandra\Type

type

( )

The type of this blob.

Returns:
Type Details
Cassandra\Type
string

bytes

( )

Returns bytes as a hex string.

Returns:
Type Details
string

bytes as hexadecimal string

string

__toString

( )

Returns bytes as a hex string.

Returns:
Type Details
string

bytes as hexadecimal string

string

toBinaryString

( )

Returns bytes as a binary string.

Returns:
Type Details
string

bytes as binary string