src/base/Gateway.php
protected function createItemBagForOrder(Order $order)
    {
        if (!$this->sendCartInfo) {
            return null;
        }

        $items = $this->getItemListForOrder($order);
        $itemBagClassName = $this->getItemBagClassName();

        return new $itemBagClassName($items);
    }
protected function createItemBagForOrder(Order $order)
    {
        if (!$this->sendCartInfo) {
            return null;
        }

        $items = $this->getItemListForOrder($order);
        $itemBagClassName = $this->getItemBagClassName();

        return new $itemBagClassName($items);
    }
protected function createItemBagForOrder ( Order $ order ) { if ( ! $ this -> sendCartInfo ) { return null ; } $ items = $ this -> getItemListForOrder ( $ order ) ; $ itemBagClassName = $ this -> getItemBagClassName ( ) ; return new $ itemBagClassName ( $ items ) ; }
Create a gateway specific item bag for the order.

@param Order $order The order.

@return ItemBag|null
Create a gateway specific item bag for the order .