public function __construct(\PDO $db = null) { if ($db != null) { $this->db = $db; } else { $this->db = Database::get(); } }
public static function getDatabase() { return Database::get(); }