invitation = $invitation; $this->db = $db; $this->reminder_template = $reminder_template; $this->template_data = $template_data; $this->override = $override; // $this->entity_string = $this->resolveEntityString(); // $this->entity = $invitation->{$this->entity_string}; // $this->settings = $invitation->contact->client->getMergedSettings(); // $this->reminder_template = $reminder_template ?: $this->entity->calculateTemplate($this->entity_string); // $this->html_engine = new HtmlEngine($invitation); // $this->template_data = $template_data; } public function handle(): void { MultiDB::setDb($this->db); //construct mailable //construct mailer } }