PHP Class Cassandra\Blob

Inheritance: implements cassandra\Value
Exibir arquivo Open project: datastax/php-driver

Public Methods

Method Description
__construct ( string $bytes ) Creates a new bytes array.
__toString ( ) : string Returns bytes as a hex string.
bytes ( ) : string Returns bytes as a hex string.
toBinaryString ( ) : string Returns bytes as a binary string.
type ( ) : cassandra\Type The type of this blob.

Method Details

__construct() public method

Creates a new bytes array.
public __construct ( string $bytes )
$bytes string any bytes

__toString() public method

Returns bytes as a hex string.
public __toString ( ) : string
return string bytes as hexadecimal string

bytes() public method

Returns bytes as a hex string.
public bytes ( ) : string
return string bytes as hexadecimal string

toBinaryString() public method

Returns bytes as a binary string.
public toBinaryString ( ) : string
return string bytes as binary string

type() public method

The type of this blob.
public type ( ) : cassandra\Type
return cassandra\Type