ResetPasswordTokenNotification
extends Notification
in package
Class ResetPasswordNotification.
Table of Contents
Properties
- $as : string
- $channels : array<string|int, mixed>
- $data : array<string|int, mixed>
- $manager : NotificationManagerInterface
- $model : mixed
- $notifiable : IsNotifiable|null
- $token : PasswordResetToken
- $type : string
- Indicates notification type.
- $user : UserEntity|null
Methods
- __construct() : mixed
- Notification constructor.
- callbackMessage() : string|null
- channel() : ResetPasswordTokenNotification
- 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
- toMobileMessage() : array<string, mixed>
- toRouter() : string|null
- toTextMessage() : Message|null
- toUrl() : string|null
- via() : array<string|int, string>
- getContentPasswordResetToken() : string|null
- getContentPasswordUpdateForm() : string|null
- getSubject() : string
- sendPasswordResetToken() : MailMessage
- sendPasswordUpdateForm() : MailMessage
Properties
$as
protected
string
$as
$channels
protected
array<string|int, mixed>
$channels
= []
$data
protected
array<string|int, mixed>
$data
= []
$manager
protected
NotificationManagerInterface
$manager
$model
protected
mixed
$model
$notifiable
protected
IsNotifiable|null
$notifiable
= null
$token
protected
PasswordResetToken
$token
$type
Indicates notification type.
protected
string
$type
= 'request_reset_password_token'
$user
protected
UserEntity|null
$user
= null
Methods
__construct()
Notification constructor.
public
__construct(PasswordResetToken $token[, string $channel = 'mail' ][, string $as = 'token' ]) : mixed
Parameters
- $token : PasswordResetToken
- $channel : string = 'mail'
- $as : string = 'token'
callbackMessage()
public
callbackMessage() : string|null
Return values
string|nullchannel()
public
channel(string $channel) : ResetPasswordTokenNotification
Parameters
- $channel : string
Return values
ResetPasswordTokenNotificationgetLocale()
public
getLocale() : string|null
Return values
string|nullgetType()
Get notification type.
public
getType() : string
Return values
stringlocalize()
public
localize([string|null $key = null ][, array<string, mixed> $replace = [] ]) : string
Parameters
- $key : string|null = null
- $replace : array<string, mixed> = []
Return values
stringsetData()
Assign value of data column in table notifications.
public
setData(array<int, mixed> $data) : void
Parameters
- $data : array<int, mixed>
setModel()
Set model for notification.
public
setModel(Entity $item) : void
Parameters
- $item : Entity
setNotifiable()
public
setNotifiable(IsNotifiable|null $notifiable) : self
Parameters
- $notifiable : IsNotifiable|null
Return values
selfsetUser()
public
setUser(UserEntity|null $user) : void
Parameters
- $user : UserEntity|null
toArray()
Must return an array to store to database.
public
toArray(IsNotifiable $notifiable) : array<string|int, mixed>
Parameters
- $notifiable : IsNotifiable
Return values
array<string|int, mixed>toLink()
public
toLink() : string|null
Return values
string|nulltoMail()
public
toMail() : MailMessage
Return values
MailMessagetoMobileMessage()
public
toMobileMessage(IsNotifiable $notifiable) : array<string, mixed>
Parameters
- $notifiable : IsNotifiable
Return values
array<string, mixed>toRouter()
public
toRouter() : string|null
Return values
string|nulltoTextMessage()
public
toTextMessage(IsNotifiable $notifiable) : Message|null
Parameters
- $notifiable : IsNotifiable
Return values
Message|nulltoUrl()
public
toUrl() : string|null
Return values
string|nullvia()
public
via(IsNotifiable $notifiable) : array<string|int, string>
Parameters
- $notifiable : IsNotifiable
Return values
array<string|int, string>getContentPasswordResetToken()
protected
getContentPasswordResetToken(PasswordResetToken $token) : string|null
Parameters
- $token : PasswordResetToken
Return values
string|nullgetContentPasswordUpdateForm()
protected
getContentPasswordUpdateForm(PasswordResetToken $token) : string|null
Parameters
- $token : PasswordResetToken
Return values
string|nullgetSubject()
protected
getSubject() : string
Return values
stringsendPasswordResetToken()
protected
sendPasswordResetToken(MailMessage $service, PasswordResetToken $token) : MailMessage
Parameters
- $service : MailMessage
- $token : PasswordResetToken
Return values
MailMessagesendPasswordUpdateForm()
protected
sendPasswordUpdateForm(MailMessage $service, PasswordResetToken $token) : MailMessage
Parameters
- $service : MailMessage
- $token : PasswordResetToken