database = $database; $this->settings = $settings; $this->tables = $tables; $this->error = null; $this->toast = null; $this ->construct_fail() ->construct_toast() ->construct_simple_template(); parent::__construct($templates); } public static function get_name() : string { return get_called_class(); } protected function get_tables() : table_names { return $this->tables; } protected function get_settings() : settings { return $this->settings; } protected function get_database() : \wpdb { return $this->database; } private table_names $tables; private \wpdb $database; private settings $settings; }