src/base/Gateway.php
protected function getItemBagForOrder(Order $order)
    {
        $itemBag = $this->createItemBagForOrder($order);

        $event = new ItemBagEvent([
            'items' => $itemBag,
            'order' => $order
        ]);
        $this->trigger(self::EVENT_AFTER_CREATE_ITEM_BAG, $event);

        return $event->items;
    }
protected function getItemBagForOrder(Order $order)
    {
        $itemBag = $this->createItemBagForOrder($order);

        $event = new ItemBagEvent([
            'items' => $itemBag,
            'order' => $order
        ]);
        $this->trigger(self::EVENT_AFTER_CREATE_ITEM_BAG, $event);

        return $event->items;
    }
protected function getItemBagForOrder ( Order $ order ) { $ itemBag = $ this -> createItemBagForOrder ( $ order ) ; $ event = new ItemBagEvent ( [ 'items' => $ itemBag , 'order' => $ order ] ) ; $ this -> trigger ( self :: EVENT_AFTER_CREATE_ITEM_BAG , $ event ) ; return $ event -> items ; }
Get the item bag for the order.

@param Order $order

@return mixed
Get the item bag for the order .