1
0
Fork 0
mirror of synced 2024-09-30 17:26:48 +13:00

reset variables

This commit is contained in:
Damodar Lohani 2024-02-24 14:56:53 +00:00
parent ea484e593b
commit d91a0e3048

View file

@ -378,6 +378,23 @@ class Mail extends Event
return $this; return $this;
} }
/**
* Reset
*
* @return self
*/
public function reset(): self
{
$this->project = null;
$this->recipient = '';
$this->name = '';
$this->subject = '';
$this->body = '';
$this->variables = [];
$this->bodyTemplate = '';
$this->attachment = [];
}
/** /**
* Executes the event and sends it to the mails worker. * Executes the event and sends it to the mails worker.
* *