PHP Класс Cassandra\Collection

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

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

Метод Описание
__construct ( cassandra\Type $type ) Creates a new collection of a given type.
add ( $value ) : integer Adds one or more values to this collection.
count ( ) : integer Total number of elements in this collection
current ( ) : mixed Current element for iteration
find ( mixed $value ) : integer Finds index of a value in this collection.
get ( integer $index ) : mixed Retrieves the value at a given index.
key ( ) : integer Current key for iteration
next ( ) : void Move internal iterator forward
remove ( integer $index ) : boolean Deletes the value at a given index
rewind ( ) : void Rewind internal iterator
type ( ) : cassandra\Type The type of this collection.
valid ( ) : boolean Check whether a current value exists
values ( ) : array Array of values in this collection.

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

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

Creates a new collection of a given type.
public __construct ( cassandra\Type $type )
$type cassandra\Type

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

Adds one or more values to this collection.
public add ( $value ) : integer
Результат integer total number of values in this collection

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

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

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

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

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

Finds index of a value in this collection.
public find ( mixed $value ) : integer
$value mixed Value
Результат integer Index or null

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

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

Deletes the value at a given index
public remove ( integer $index ) : boolean
$index integer Index
Результат boolean Whether the value at a given index is correctly removed

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

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

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

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

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

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

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

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