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