1
0
Fork 0
mirror of synced 2024-06-29 19:50:26 +12: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;
}
/**
* 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.
*