Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

39 Zeilen
996B

  1. <?php
  2. namespace App\Jobs\SeasonTicketContract\Selection;
  3. use App\Codes\QueueName;
  4. use App\Jobs\BaseJob;
  5. use App\Logic\SeasonTicketContractSelectionManager;
  6. use App\Util\LoggingUtil;
  7. use Exception;
  8. use Illuminate\Database\Eloquent\ModelNotFoundException;
  9. class NoticeToCandidates extends BaseJob
  10. {
  11. /**
  12. * Create a new job instance.
  13. *
  14. * @return void
  15. */
  16. public function __construct(
  17. private int $recordNo
  18. ) {
  19. $this->onQueue(QueueName::JOB->value);
  20. }
  21. protected function handleJob()
  22. {
  23. try {
  24. $manager = new SeasonTicketContractSelectionManager($this->recordNo);
  25. $manager->sendNotice()
  26. ->save();
  27. } catch (ModelNotFoundException $e) {
  28. LoggingUtil::errorException($e, sprintf("データ存在なし削除 %s", self::class));
  29. } catch (Exception $e) {
  30. LoggingUtil::errorException($e, sprintf("ジョブ失敗->削除 %s", self::class));
  31. }
  32. }
  33. }