From 867d3d33ca98f16bbedb8f6e212818a2fde6da8f Mon Sep 17 00:00:00 2001 From: Piotr Potrebka <piotr.potrebka@wpdesk.net> Date: Thu, 26 Jan 2023 13:15:46 +0100 Subject: [PATCH] feat: email abstract --- src/Abstracts/EmailAbstract.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/Abstracts/EmailAbstract.php b/src/Abstracts/EmailAbstract.php index 64b9206..d0d8730 100644 --- a/src/Abstracts/EmailAbstract.php +++ b/src/Abstracts/EmailAbstract.php @@ -271,18 +271,7 @@ abstract class EmailAbstract implements EmailInterface { * @throws Exception */ public function get_content(): string { - if ( ! $this->content ) { - throw new Exception( 'Empty email content' ); - } - - return ''; - } - - /** - * @return mixed - */ - public function get_object() { - return ''; + return $this->content; } -- GitLab