public function __construct(DBInterface $db = null, string $table = self::DEFAULT_TABLE) { $this->db = $db ?? \Airship\get_database(); if (empty($table)) { $table = self::DEFAULT_TABLE; } $this->table = $table; }