PHP Interface 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.
Mostrar archivo
Open project: bertptrs/phpstreams
Interface Usage Examples
Public Methods
Method |
Description |
|
add ( mixed $key, mixed $value ) |
Add a new value to the collector. |
|
get ( ) : mixed |
Get the final result from the collector. |
|
Method Details
Add a new value to the collector.
Get the final result from the collector.
public get ( ) : mixed |
return |
mixed |
Whatever the result of this collector is. |