con = $con; } public function insert(string $username, string $description): void { $this->con->exec( "INSERT INTO FormEntries VALUES (:name, :description)", [ ":name" => [$username, PDO::PARAM_STR], "description" => [$description, PDO::PARAM_STR], ] ); } /** * @return array */ public function listResults(): array { return $this->con->fetch("SELECT * FROM FormEntries", []); } }