PHP Интерфейс Flarum\Core\Notification\BlueprintInterface

Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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.

Описание методов

getData() публичный Метод

Get the data to be stored in the notification.
public getData ( ) : array | null
Результат array | null

getSender() публичный Метод

Get the user that sent the notification.
public getSender ( ) : User | null
Результат Flarum\Core\User | null

getSubject() публичный Метод

Get the model that is the subject of this activity.
public getSubject ( ) : AbstractModel | null
Результат Flarum\Database\AbstractModel | null

getSubjectModel() публичный статический Метод

Get the name of the model class for the subject of this activity.
public static getSubjectModel ( ) : string
Результат string

getType() публичный статический Метод

Get the serialized type of this activity.
public static getType ( ) : string
Результат string