deleteMultiple = $deleteMultiple; $this->logger = $logger; } /** * @inheritdoc */ public function execute(array $sourceItems): void { if (empty($sourceItems)) { throw new InputException(__('Input data is empty')); } try { $this->deleteMultiple->execute($sourceItems); } catch (\Exception $e) { $this->logger->error($e->getMessage()); throw new CouldNotDeleteException(__('Could not delete Source Items'), $e); } } }