public function __construct($db_connection = null) { if ($db_connection == null) { $this->db = Db::get(); } else { $this->db = $db_connection; } }