PHP Класс Cassandra\UserTypeValue

Наследование: implements cassandra\Value, implements Countable, implements Iterator
Показать файл Открыть проект

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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

count() публичный Метод

Total number of elements in this user type value.
public count ( ) : integer
Результат integer count

current() публичный Метод

Current element for iteration
public current ( ) : mixed
Результат mixed current element

get() публичный Метод

Retrieves the value at a given name.
public get ( sting $name ) : mixed
$name sting String of the field name
Результат mixed Value or null

key() публичный Метод

Current key for iteration
public key ( ) : integer
Результат integer current key

next() публичный Метод

Move internal iterator forward
public next ( ) : void
Результат void

rewind() публичный Метод

Rewind internal iterator
public rewind ( ) : void
Результат void

set() публичный Метод

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
Результат void

type() публичный Метод

The type of this user type value.
public type ( ) : cassandra\Type
Результат cassandra\Type

valid() публичный Метод

Check whether a current value exists
public valid ( ) : boolean
Результат boolean

values() публичный Метод

Array of values in this user type value.
public values ( ) : array
Результат array values