comments hinzugefügt bei Core + review + testing
This commit is contained in:
Regular → Executable
+3
-1
@@ -1,7 +1,9 @@
|
||||
<?php
|
||||
|
||||
// Stellt die Verbindung zur Datenbank bereit
|
||||
class Database
|
||||
{
|
||||
// Verbindung wird zwischengespeichert damit pro Request nur eine entsteht
|
||||
private static ?PDO $connection = null;
|
||||
|
||||
public static function connection(): PDO
|
||||
@@ -29,4 +31,4 @@ class Database
|
||||
|
||||
return self::$connection;
|
||||
}
|
||||
}
|
||||
}
|
||||
Regular → Executable
Reference in New Issue
Block a user