From 969223ee7f72e047944ad3affcf36bdaa3655ddf Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Mon, 5 Oct 2020 22:33:46 +0200 Subject: User: Update documentation and remove global db usages --- ratatoeskr/sys/Database.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ratatoeskr/sys/Database.php') 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(); + } } -- cgit v1.2.3-70-g09d2