diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2020-10-05 22:33:46 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2020-10-05 22:33:46 +0200 |
commit | 969223ee7f72e047944ad3affcf36bdaa3655ddf (patch) | |
tree | 4e468b42c8db2472ed15151fe6614ceed5ed6310 /ratatoeskr/sys/Database.php | |
parent | 1355c0479fc6ac64d01ff4d2fd9c1236fd1ca8a0 (diff) | |
download | ratatoeskr-cms-969223ee7f72e047944ad3affcf36bdaa3655ddf.tar.gz ratatoeskr-cms-969223ee7f72e047944ad3affcf36bdaa3655ddf.tar.bz2 ratatoeskr-cms-969223ee7f72e047944ad3affcf36bdaa3655ddf.zip |
User: Update documentation and remove global db usages
Diffstat (limited to 'ratatoeskr/sys/Database.php')
-rw-r--r-- | ratatoeskr/sys/Database.php | 8 |
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(); + } } |