public function __construct(Iterator $iterator, $chunkSize) { $this->iterator = $iterator; $this->chunkSize = $chunkSize; }