From 7e4693a855396bc3acd15473f4d66bb6a57074a6 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Mon, 18 May 2015 17:11:57 +0200 Subject: [PATCH] Fix code error, static methods can not be abstract. --- src/Core/Notifications/Types/Notification.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Core/Notifications/Types/Notification.php b/src/Core/Notifications/Types/Notification.php index 8f2d2d2f8..ecb410a29 100644 --- a/src/Core/Notifications/Types/Notification.php +++ b/src/Core/Notifications/Types/Notification.php @@ -2,5 +2,15 @@ abstract class Notification { - abstract public static function getType(); + /** + * Returns the serialized type of this notification. + * + * This method should be overwritten by subclasses. + * + * @return string + */ + public static function getType() + { + return 'notification'; + } }