PHP Класс Cassandra\Set

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

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

Метод Описание
__construct ( cassandra\Type $type ) Creates a new collection of a given type.
add ( mixed $value ) : boolean Adds a value to this set.
count ( ) : integer Total number of elements in this set
current ( ) : mixed Current element for iteration
has ( mixed $value ) : boolean Returns whether a value is in this set.
key ( ) : integer Current key for iteration
next ( ) : void Move internal iterator forward
remove ( mixed $value ) : boolean Removes a value to this set.
rewind ( ) : void Rewind internal iterator
type ( ) : cassandra\Type The type of this set.
valid ( ) : boolean Check whether a current value exists
values ( ) : array Array of values in this set.

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

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

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

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

Adds a value to this set.
public add ( mixed $value ) : boolean
$value mixed Value
Результат boolean whether the value has been added

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

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

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

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

has() публичный метод

Returns whether a value is in this set.
public has ( mixed $value ) : boolean
$value mixed Value
Результат boolean whether the value is in the set

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

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

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

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

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

Removes a value to this set.
public remove ( mixed $value ) : boolean
$value mixed Value
Результат boolean whether the value has been removed

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

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

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

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

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

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

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

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