PHP Интерфейс Pinq\Iterators\ISet

Автор: Elliot Levin ([email protected])
Наследование: extends Countable, extends Traversable
Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
add ( mixed $value ) : boolean Attempts to add the value to the set, will fail if the value is already contained in the set.
addRef ( mixed &$value ) : boolean Attempts to add the value by reference to the set, will fail if the value is already contained in the set.
clear ( ) : void Removes all values from the set.
contains ( mixed $value ) : boolean Returns whether the values in contained in the set.
remove ( mixed $value ) : boolean Attempts to remove the value from the set, will fail if the value is not contained in the set.

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

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

Attempts to add the value to the set, will fail if the value is already contained in the set.
public add ( mixed $value ) : boolean
$value mixed
Результат boolean Whether the value was successfully added

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

Attempts to add the value by reference to the set, will fail if the value is already contained in the set.
public addRef ( mixed &$value ) : boolean
$value mixed
Результат boolean Whether the value was successfully added

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

Removes all values from the set.
public clear ( ) : void
Результат void

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

Returns whether the values in contained in the set.
public contains ( mixed $value ) : boolean
$value mixed
Результат boolean

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

Attempts to remove the value from the set, will fail if the value is not contained in the set.
public remove ( mixed $value ) : boolean
$value mixed
Результат boolean Whether the value was successfully removed