Example #1
0
 /**
  * Returns a fluent iterator returning elements of this fluent iterator grouped in chunks of $chunkSize
  * Returns the
  * @param $chunkSize
  * @return $this
  */
 public function batch($chunkSize)
 {
     $this->iterator = Iterators::batch($this->iterator, $chunkSize);
     return $this;
 }