PHP Класс Cassandra\Tuple

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

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

Метод Описание
__construct ( array $types ) Creates a new tuple with the given types.
count ( ) : integer Total number of elements in this tuple
current ( ) : mixed Current element for iteration
get ( integer $index ) : mixed Retrieves the value at a given index.
key ( ) : integer Current key for iteration
next ( ) : void Move internal iterator forward
rewind ( ) : void Rewind internal iterator
set ( integer $index, mixed $value ) : void Sets the value at index in this tuple .
type ( ) : cassandra\Type The type of this tuple.
valid ( ) : boolean Check whether a current value exists
values ( ) : array Array of values in this tuple.

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

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

Creates a new tuple with the given types.
public __construct ( array $types )
$types array Array of types

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

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

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

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

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

Retrieves the value at a given index.
public get ( integer $index ) : mixed
$index integer Index
Результат 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 index in this tuple .
public set ( integer $index, mixed $value ) : void
$index integer Index
$value mixed Value or null
Результат void

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

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

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

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

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

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