add() public method

Add a new value to the collector.
public add ( mixed $key, mixed $value )
$key mixed The current key.
$value mixed The current value.
Example #1
0
 public function collect(Collector $collector)
 {
     foreach ($this as $key => $value) {
         $collector->add($key, $value);
     }
     return $collector->get();
 }