phpstreams\Collector::get PHP Method

get() public method

Get the final result from the collector.
public get ( ) : mixed
return mixed Whatever the result of this collector is.
    public function get();

Usage Example

Example #1
0
 public function collect(Collector $collector)
 {
     foreach ($this as $key => $value) {
         $collector->add($key, $value);
     }
     return $collector->get();
 }
Collector