protected function doFetch() { if ($element = $this->iterator->fetch()) { $element[0] = $this->index++; return $element; } }