class JobStateChanged extends Notification

Properties

protected MaiaJob $job

The job which changed state.

Methods

void
__construct(MaiaJob $job)

Create a new notification instance.

array
via(mixed $notifiable)

Get the notification's delivery channels.

MailMessage
toMail(mixed $notifiable)

Get the mail representation of the notification.

array
toArray(mixed $notifiable)

Get the array representation of the notification.

string
getTitle(MaiaJob $job)

Get the title for the state change.

string
getMessage(MaiaJob $job)

Get the message for the state change.

Details

at line 25
void __construct(MaiaJob $job)

Create a new notification instance.

Parameters

MaiaJob $job

Return Value

void

at line 36
array via(mixed $notifiable)

Get the notification's delivery channels.

Parameters

mixed $notifiable

Return Value

array

at line 57
MailMessage toMail(mixed $notifiable)

Get the mail representation of the notification.

Parameters

mixed $notifiable

Return Value

MailMessage

at line 76
array toArray(mixed $notifiable)

Get the array representation of the notification.

Parameters

mixed $notifiable

Return Value

array

at line 97
protected string getTitle(MaiaJob $job)

Get the title for the state change.

Parameters

MaiaJob $job

Return Value

string

at line 108
protected string getMessage(MaiaJob $job)

Get the message for the state change.

Parameters

MaiaJob $job

Return Value

string