private function fetchChunk() { $this->currentChunk = array(); for ($i = 0; $i < $this->chunkSize && $this->iterator->valid(); $i++, $this->iterator->next()) { $this->currentChunk[] = $this->iterator->current(); } }