Major revision 2

This commit is contained in:
Mattia Mascarello
2023-02-07 01:27:52 +01:00
parent 6a005fd277
commit 88ce5972b4
919 changed files with 16257 additions and 829872 deletions

32
database/Database.php Normal file
View File

@ -0,0 +1,32 @@
<?php
/**
* Holds a database instance
*/
class Database
{
private PDO $pdo;
public function __construct(PDO $pdo)
{
$this->pdo = $pdo;
}
/**
* Get the value of pdo
*/
public function getPdo()
{
return $this->pdo;
}
/**
* Set the value of pdo
*
* @return self
*/
public function setPdo($pdo)
{
$this->pdo = $pdo;
return $this;
}
}