PHP Interface Flarum\Core\Notification\BlueprintInterface

Afficher le fichier Open project: flarum/core Interface Usage Examples

Méthodes publiques

Méthode Description
getData ( ) : array | null Get the data to be stored in the notification.
getSender ( ) : User | null Get the user that sent the notification.
getSubject ( ) : AbstractModel | null Get the model that is the subject of this activity.
getSubjectModel ( ) : string Get the name of the model class for the subject of this activity.
getType ( ) : string Get the serialized type of this activity.

Method Details

getData() public méthode

Get the data to be stored in the notification.
public getData ( ) : array | null
Résultat array | null

getSender() public méthode

Get the user that sent the notification.
public getSender ( ) : User | null
Résultat Flarum\Core\User | null

getSubject() public méthode

Get the model that is the subject of this activity.
public getSubject ( ) : AbstractModel | null
Résultat Flarum\Database\AbstractModel | null

getSubjectModel() public static méthode

Get the name of the model class for the subject of this activity.
public static getSubjectModel ( ) : string
Résultat string

getType() public static méthode

Get the serialized type of this activity.
public static getType ( ) : string
Résultat string