From 5b5a2131432720316ffb975f092bc8788dc1eeb5 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/framework/core/src/Core/Notifications/Types/Notification.php b/framework/core/src/Core/Notifications/Types/Notification.php index 8f2d2d2f8..ecb410a29 100644 --- a/framework/core/src/Core/Notifications/Types/Notification.php +++ b/framework/core/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'; + } }