PHP Class Cassandra\UserTypeValue

Inheritance: implements cassandra\Value, implements Countable, implements Iterator
Afficher le fichier Open project: datastax/php-driver

Méthodes publiques

Méthode Description
__construct ( array $types ) Creates a new user type value with the given name/type pairs.
count ( ) : integer Total number of elements in this user type value.
current ( ) : mixed Current element for iteration
get ( sting $name ) : mixed Retrieves the value at a given name.
key ( ) : integer Current key for iteration
next ( ) : void Move internal iterator forward
rewind ( ) : void Rewind internal iterator
set ( sting $name, mixed $value ) : void Sets the value at name in this user type value.
type ( ) : cassandra\Type The type of this user type value.
valid ( ) : boolean Check whether a current value exists
values ( ) : array Array of values in this user type value.

Method Details

__construct() public méthode

Creates a new user type value with the given name/type pairs.
public __construct ( array $types )
$types array Array of types

count() public méthode

Total number of elements in this user type value.
public count ( ) : integer
Résultat integer count

current() public méthode

Current element for iteration
public current ( ) : mixed
Résultat mixed current element

get() public méthode

Retrieves the value at a given name.
public get ( sting $name ) : mixed
$name sting String of the field name
Résultat mixed Value or null

key() public méthode

Current key for iteration
public key ( ) : integer
Résultat integer current key

next() public méthode

Move internal iterator forward
public next ( ) : void
Résultat void

rewind() public méthode

Rewind internal iterator
public rewind ( ) : void
Résultat void

set() public méthode

Sets the value at name in this user type value.
public set ( sting $name, mixed $value ) : void
$name sting String of the field name
$value mixed Value or null
Résultat void

type() public méthode

The type of this user type value.
public type ( ) : cassandra\Type
Résultat cassandra\Type

valid() public méthode

Check whether a current value exists
public valid ( ) : boolean
Résultat boolean

values() public méthode

Array of values in this user type value.
public values ( ) : array
Résultat array values