A PHP representation of the CQL UDT datatype

Implements

Methods

__construct

( array $types )

Creates a new user type value with the given name/type pairs.

Parameters:
Name Type Details
$types array

Array of types

Dse\Type

type

( )

The type of this user type value.

Returns:
Type Details
Dse\Type
array

values

( )

Array of values in this user type value.

Returns:
Type Details
array

values

void

set

( mixed $value )

Sets the value at name in this user type value.

Parameters:
Name Type Details
$value mixed

A value or null

Returns:
Type Details
void
mixed

get

( string $name )

Retrieves the value at a given name.

Parameters:
Name Type Details
$name string

String of the field name

Returns:
Type Details
mixed

A value or null

int

count

( )

Total number of elements in this user type value.

Returns:
Type Details
int

count

mixed

current

( )

Current element for iteration

Returns:
Type Details
mixed

The current element

int

key

( )

Current key for iteration

Returns:
Type Details
int

current key

void

next

( )

Move internal iterator forward

Returns:
Type Details
void
bool

valid

( )

Check whether a current value exists

Returns:
Type Details
bool
void

rewind

( )

Rewind internal iterator

Returns:
Type Details
void