From 223714117032f353c07c86784d6b3394a194c4f0 Mon Sep 17 00:00:00 2001 From: Piotr Potrebka <piotr.potrebka@wpdesk.net> Date: Wed, 25 Jan 2023 13:22:02 +0100 Subject: [PATCH] feat: email abstract --- src/Abstracts/EmailAbstract.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/Abstracts/EmailAbstract.php b/src/Abstracts/EmailAbstract.php index 8542f0a..fbd687f 100644 --- a/src/Abstracts/EmailAbstract.php +++ b/src/Abstracts/EmailAbstract.php @@ -6,6 +6,11 @@ use Exception; abstract class EmailAbstract implements EmailInterface { + /** + * @var bool + */ + private $is_enable; + /** * @var array */ @@ -53,6 +58,22 @@ abstract class EmailAbstract implements EmailInterface { */ abstract public function get_id(): string; + /** + * @return bool + */ + public function get_is_enable(): bool { + return $this->is_enable; + } + + /** + * @return bool + */ + public function set_is_enable( $enable ): self { + $this->is_enable = $enable; + + return $this; + } + /** * Set placeholders. * -- GitLab