add() add(string $alert, string $type = null) Add an alert. Parameters string $alert The alert string. string $type The alert type.
getLast() getLast() : object Returns the last alert received. Returns object — Alert information. Object with these properties: - alert: (string) Alert string. - type: (string) [OPTIONAL] Alert type.
notify() notify() Notification is triggered internally whenever the object's internal data storage is altered.