service = $service; } public function run(Data $data): void { $targetId = $data->getTargetId(); if (!$targetId) { throw new Error("No target."); } try { $this->service->fetch($targetId); } catch (Throwable $e) { throw new Error( 'Job CheckInboundEmails ' . $targetId . ': [' . $e->getCode() . '] ' .$e->getMessage() ); } } }