GitHub for Mac is silly, this should've been in the last commit

This commit is contained in:
Toby Zerner
2015-05-14 22:40:20 +09:30
parent 3925e5892c
commit 9ca77d79a0

View File

@ -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();
}