comments hinzugefügt bei Core + review + testing
This commit is contained in:
Regular → Executable
+2
@@ -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
|
||||||
|
|||||||
Regular → Executable
Regular → Executable
Reference in New Issue
Block a user