stocky-action-20182
06/30/2023, 6:09 AM* @return \Spryker\Shared\Kernel\Transfer\TransferInterface|array
*/
public function run(array $orderItems, SpySalesOrder $orderEntity, ReadOnlyArrayObject $data)
{
if(config()->isSkipflagenabled()) {
return; // I need to return empty or an array
}
$orderEntity->getItems()->setData($orderItems);
$orderTransfer = $this->getOrderTransfer($orderEntity);
return $this
->getFacade()
->captureCommandHandle($orderItems, $orderTransfer);
}
do I need to return empty or an array as mentioned in return type, if so what is the array to returned?quick-baker-99786
06/30/2023, 7:38 AM