PHP Интерфейс phpstreams\Collector
A collector can be thought of as a stateful reductor. It is initialized (in
some way) and then elements are insterted one by one.
Finally, the result is queried in the get method.
Показать файл
Открыть проект
Примеры использования интерфейса
Открытые методы
Метод |
Описание |
|
add ( mixed $key, mixed $value ) |
Add a new value to the collector. |
|
get ( ) : mixed |
Get the final result from the collector. |
|
Описание методов
Add a new value to the collector.
Get the final result from the collector.
public get ( ) : mixed |
Результат |
mixed |
Whatever the result of this collector is. |