Copied!

ShipmentStatusChange

ShipmentStatusChange.php : 25
Implements EmailNotificationInterface, ShipmentAwareNotificationInterface, OrderAwareNotificationInterface, SmsNotificationInterface

Methods

public__construct()

ShipmentStatusChange.php : 46
public __construct(ShipmentInterface $shipment, WorkflowInterface $workflow, Transition $transition, Marking $marking, array<string|int, mixed> $context)

Parameters

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

publicasEmailMessage()

ShipmentStatusChange.php : 62
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()

ShipmentStatusChange.php : 67
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()

ShipmentStatusChange.php : 100
public getContext() : array<string|int, mixed>

Return values

array<string|int, mixed>

publicgetMarking()

ShipmentStatusChange.php : 92
public getMarking() : Marking

Return values

Marking

publicgetOrder()

ShipmentStatusChange.php : 72
public getOrder() : OrderInterface

Return values

OrderInterface

publicgetShipment()

ShipmentStatusChange.php : 77
public getShipment() : ShipmentInterface

Return values

ShipmentInterface

publicgetTransition()

ShipmentStatusChange.php : 87
public getTransition() : Transition

Return values

Transition

publicgetWorkflow()

ShipmentStatusChange.php : 82
public getWorkflow() : WorkflowInterface

Return values

WorkflowInterface