for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace GFG\DTOMarketplace\Context\Venture\PostPayment;
use GFG\DTOMarketplace\Context\Base;
class ReadyToShip extends Base
{
/**
* {@inheritdoc}
*/
public function getHttpMethod()
return 'put';
}
public function exportContextData()
$dataWrapper = $this->getDataWrapper();
$items = [];
foreach ($dataWrapper->getItemCollection() as $item) {
$items[] = [
'venture_order_item_id' => $item->getVentureOrderItemId(),
'order_item_id' => $item->getOrderItemId()
];
return $this->prepareExport([
'venture_order_nr' => $dataWrapper->getVentureOrderNr(),
'order_nr' => $dataWrapper->getOrderNr(),
'item_collection' => $items
]);