From d91a0e30481b0ade36ec837c866baf038124b91a Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Sat, 24 Feb 2024 14:56:53 +0000 Subject: [PATCH] reset variables --- src/Appwrite/Event/Mail.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/Appwrite/Event/Mail.php b/src/Appwrite/Event/Mail.php index ac021e71a2..6ded33e02e 100644 --- a/src/Appwrite/Event/Mail.php +++ b/src/Appwrite/Event/Mail.php @@ -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. *