Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SenderInterface.php
Go to the documentation of this file.
1 <?php
7 
11 interface SenderInterface
12 {
23  public function send(
24  \Magento\Sales\Api\Data\OrderInterface $order,
26  \Magento\Sales\Api\Data\ShipmentCommentCreationInterface $comment = null,
27  $forceSyncMode = false
28  );
29 }
$order
Definition: order.php:55
send(\Magento\Sales\Api\Data\OrderInterface $order, \Magento\Sales\Api\Data\ShipmentInterface $shipment, \Magento\Sales\Api\Data\ShipmentCommentCreationInterface $comment=null, $forceSyncMode=false)
foreach($order->getItems() as $orderItem) $shipment