MetaFox

CommentNotification extends Notification
in package

Class Notification.

Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

Table of Contents

Properties

$model  : Comment
$data  : array<string|int, mixed>
$manager  : NotificationManagerInterface
$model  : mixed
$notifiable  : IsNotifiable|null
$type  : string
Indicates notification type.
$user  : UserEntity|null

Methods

__construct()  : mixed
Notification constructor.
callbackMessage()  : string|null
getLocale()  : string|null
getType()  : string
Get notification type.
localize()  : string
setData()  : void
Assign value of data column in table notifications.
setModel()  : void
Set model for notification.
setNotifiable()  : self
setUser()  : void
toArray()  : array<string|int, mixed>
Must return an array to store to database.
toLink()  : string|null
toMail()  : MailMessage
Get the mail representation of the notification.
toMobileMessage()  : array<string, mixed>
toRouter()  : string|null
toTextMessage()  : Message|null
toUrl()  : string|null
via()  : array<string|int, string>
handleTitle()  : string

Properties

Methods

__construct()

Notification constructor.

public __construct([mixed $model = null ]) : mixed
Parameters
$model : mixed = null

callbackMessage()

public callbackMessage() : string|null
Tags
throws
AuthenticationException
Return values
string|null

getLocale()

public getLocale() : string|null
Return values
string|null

getType()

Get notification type.

public getType() : string
Return values
string

localize()

public localize([string|null $key = null ][, array<string, mixed> $replace = [] ]) : string
Parameters
$key : string|null = null
$replace : array<string, mixed> = []
Return values
string

setData()

Assign value of data column in table notifications.

public setData(array<int, mixed> $data) : void
Parameters
$data : array<int, mixed>
public toLink() : string|null
Return values
string|null

toRouter()

public toRouter() : string|null
Return values
string|null

toUrl()

public toUrl() : string|null
Return values
string|null

        
On this page

Search results