interface BlueprintInterface

A notification BlueprintInterface, when instantiated, represents a notification about something. The blueprint is used by the NotificationSyncer to commit the notification to the database.

Methods

User|null
getFromUser()

<p>Get the user that sent the notification.</p>

getSubject()

<p>Get the model that is the subject of this activity.</p>

mixed
getData()

<p>Get the data to be stored in the notification.</p>

static string
getType()

<p>Get the serialized type of this activity.</p>

static string
getSubjectModel()

<p>Get the name of the model class for the subject of this activity.</p>

Details

User|null getFromUser()

<p>Get the user that sent the notification.</p>

Return Value

User|null

AbstractModel|null getSubject()

<p>Get the model that is the subject of this activity.</p>

Return Value

AbstractModel|null

mixed getData()

<p>Get the data to be stored in the notification.</p>

Return Value

mixed

static string getType()

<p>Get the serialized type of this activity.</p>

Return Value

string

static string getSubjectModel()

<p>Get the name of the model class for the subject of this activity.</p>

Return Value

string