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