Copied!

OrderStatusChange

OrderStatusChange.php : 25
Extends Notification
Implements EmailNotificationInterface, SmsNotificationInterface, OrderAwareNotificationInterface

Methods

public__construct()

OrderStatusChange.php : 45
public __construct(WorkflowSubjectInterface $workflowSubject, WorkflowInterface $workflow, Transition|null $transition, Marking $marking, array<string|int, mixed> $context)

Parameters

Name Type Default value Description
$workflowSubject WorkflowSubjectInterface - -
$workflow WorkflowInterface - -
$transition Transition|null - -
$marking Marking - -
$context array<string|int, mixed> - -

publicasEmailMessage()

OrderStatusChange.php : 61
public asEmailMessage(EmailRecipientInterface $recipient[, string $transport = null ]) : EmailMessage|null

Parameters

Name Type Default value Description
$recipient EmailRecipientInterface - -
$transport string null -

Return values

EmailMessage|null

publicasSmsMessage()

OrderStatusChange.php : 66
public asSmsMessage(SmsRecipientInterface $recipient[, string $transport = null ]) : SmsMessage|null

Parameters

Name Type Default value Description
$recipient SmsRecipientInterface - -
$transport string null -

Return values

SmsMessage|null

publicgetContext()

OrderStatusChange.php : 106
public getContext() : array<string|int, mixed>

Return values

array<string|int, mixed>

publicgetMarking()

OrderStatusChange.php : 98
public getMarking() : Marking

Return values

Marking

publicgetOrder()

OrderStatusChange.php : 76
public getOrder() : OrderInterface

Return values

OrderInterface

publicgetTransition()

OrderStatusChange.php : 93
public getTransition() : Transition|null

Return values

Transition|null

publicgetWorkflow()

OrderStatusChange.php : 88
public getWorkflow() : WorkflowInterface

Return values

WorkflowInterface

publicgetWorkflowSubject()

OrderStatusChange.php : 71
public getWorkflowSubject() : WorkflowSubjectInterface

Return values

WorkflowSubjectInterface