aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/sys/Database.php
diff options
context:
space:
mode:
Diffstat (limited to 'ratatoeskr/sys/Database.php')
-rw-r--r--ratatoeskr/sys/Database.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/ratatoeskr/sys/Database.php b/ratatoeskr/sys/Database.php
index 7654e46..4f9014a 100644
--- a/ratatoeskr/sys/Database.php
+++ b/ratatoeskr/sys/Database.php
@@ -102,4 +102,12 @@ class Database
return $stmt;
}
+
+ /**
+ * @return int
+ */
+ public function lastInsertId(): int
+ {
+ return (int)$this->pdo->lastInsertId();
+ }
}