src/Omnipay/BarclaysEpdq/Message/EssentialPurchaseRequest.php
public function setItems($items)
    {
        $newItems = new ItemBag();
        foreach ($items as $item) {
            $newItems->add(new Item($item->getParameters()));
        }

        return parent::setItems($newItems);
    }
public function setItems($items)
    {
        $newItems = new ItemBag();
        foreach ($items as $item) {
            $newItems->add(new Item($item->getParameters()));
        }

        return parent::setItems($newItems);
    }
public function setItems ( $ items ) { $ newItems = new ItemBag ( ) ; foreach ( $ items as $ item ) { $ newItems -> add ( new Item ( $ item -> getParameters ( ) ) ) ; } return parent :: setItems ( $ newItems ) ; }
Set items for request

Cast the items to instances of \Omnipay\BarclaysEpdq\Item

@param array|\Omnipay\Common\ItemBag|\Omnipay\Common\Item[] $items
@return AbstractRequest
Set items for request