Copied!

ShipmentServiceDecorator

ShipmentServiceDecorator.php : 17

Properties

protected $innerService

ShipmentServiceDecorator.php : 19
protected ShipmentServiceInterface $innerService

Methods

public__construct()

ShipmentServiceDecorator.php : 21
public __construct(ShipmentServiceInterface $innerService)

Parameters

Name Type Default value Description
$innerService ShipmentServiceInterface - -

publiccreateShipment()

ShipmentServiceDecorator.php : 41
public createShipment(ShipmentCreateStruct $createStruct) : ShipmentInterface

Parameters

Name Type Default value Description
$createStruct ShipmentCreateStruct - -

Return values

ShipmentInterface

publicdeleteShipment()

ShipmentServiceDecorator.php : 51
public deleteShipment(ShipmentInterface $shipment) : void

Parameters

Name Type Default value Description
$shipment ShipmentInterface - -

publicfindShipments()

ShipmentServiceDecorator.php : 36
public findShipments([ShipmentQuery|null $query = null ]) : ShipmentListInterface

Parameters

Name Type Default value Description
$query ShipmentQuery|null null -

Return values

ShipmentListInterface

publicgetShipment()

ShipmentServiceDecorator.php : 26
public getShipment(int $id) : ShipmentInterface

Parameters

Name Type Default value Description
$id int - -

Return values

ShipmentInterface

publicgetShipmentByIdentifier()

ShipmentServiceDecorator.php : 31
public getShipmentByIdentifier(string $identifier) : ShipmentInterface

Parameters

Name Type Default value Description
$identifier string - -

Return values

ShipmentInterface

publicupdateShipment()

ShipmentServiceDecorator.php : 46
public updateShipment(ShipmentInterface $shipment, ShipmentUpdateStruct $updateStruct) : ShipmentInterface

Parameters

Name Type Default value Description
$shipment ShipmentInterface - -
$updateStruct ShipmentUpdateStruct - -

Return values

ShipmentInterface