rows; return new User([ 'name' => $row[0], ]); } public function getRowCount(): int { return $this->rows; } } ?>