This repository has been archived on 2024-12-31. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Archive/ContentDeliveryV1/util/DB.php
2022-07-19 21:10:42 +02:00

15 lines
327 B
PHP

<?php
class DB {
private static MySQL $database;
public static function get(): MySQL {
return self::$database;
}
public static function init($hostname = "localhost", $username = "root", $password, $database) {
self::$database = new MySQL($hostname, $username, $password, $database);
}
}