mirror of
https://github.com/flarum/framework.git
synced 2024-12-04 00:03:37 +08:00
GitHub for Mac is silly, this should've been in the last commit
This commit is contained in:
parent
470f99ca8d
commit
36be2e9317
|
@ -0,0 +1,32 @@
|
||||||
|
<?php namespace Flarum\Core\Notifications\Types;
|
||||||
|
|
||||||
|
interface AlertableNotification
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Get the data to be stored in the alert.
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function getAlertData();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the user that sent the notification.
|
||||||
|
*
|
||||||
|
* @return \Flarum\Core\Models\User|null
|
||||||
|
*/
|
||||||
|
public function getSender();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the model that the notification is about.
|
||||||
|
*
|
||||||
|
* @return \Flarum\Core\Models\Model
|
||||||
|
*/
|
||||||
|
public function getSubject();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the class name of this notification type's subject model.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public static function getSubjectModel();
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user