rows = \array_values($rows); } public function getIterator(): \Iterator { yield from $this->rows; } public function fetchRow(): ?array { return $this->rows[$this->current++] ?? null; } public function getNextResult(): ?SqlResult { return $this->next; } public function getRowCount(): ?int { return \count($this->rows); } public function getColumnCount(): ?int { return null; } }