mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 15:13:42 +08:00
Fix code error, static methods can not be abstract.
This commit is contained in:
parent
e0401469dd
commit
5b5a213143
|
@ -2,5 +2,15 @@
|
||||||
|
|
||||||
abstract class Notification
|
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';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user