rainbowBot/database/Database.php

33 lines
448 B
PHP
Raw Permalink Normal View History

2023-02-07 01:27:52 +01:00
<?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;
}
}