From 319761768d25f558e803b937d1a9ba9caaf6303d Mon Sep 17 00:00:00 2001 From: dontdo Date: Wed, 12 Sep 2018 13:37:00 +0200 Subject: [PATCH] abstracted Events so we can use multiple mail-webhook-services in the future - fixed abstract,public,namespace issues --- src/Events/Event.php | 4 ++-- src/Events/{Interface => Interfaces}/EventInterface.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/Events/{Interface => Interfaces}/EventInterface.php (72%) diff --git a/src/Events/Event.php b/src/Events/Event.php index 5188d86..0b6e6f9 100644 --- a/src/Events/Event.php +++ b/src/Events/Event.php @@ -5,9 +5,9 @@ use Dmcbrn\LaravelEmailDatabaseLog\EmailLog; use Dmcbrn\LaravelEmailDatabaseLog\Events\Interface\EventInterface; -class Event implements EventInterface +abstract class Event implements EventInterface { - private function getEmail($messageId) + public function getEmail($messageId) { return EmailLog::select('id', 'messageId') ->where('messageId', $messageId) diff --git a/src/Events/Interface/EventInterface.php b/src/Events/Interfaces/EventInterface.php similarity index 72% rename from src/Events/Interface/EventInterface.php rename to src/Events/Interfaces/EventInterface.php index 35ebfd5..f51067c 100644 --- a/src/Events/Interface/EventInterface.php +++ b/src/Events/Interfaces/EventInterface.php @@ -1,6 +1,6 @@