FailedJob.php 479 B

1234567891011121314151617181920212223242526272829303132
  1. <?php namespace GO;
  2. use Exception;
  3. class FailedJob
  4. {
  5. /**
  6. * @var Job
  7. */
  8. private $job;
  9. /**
  10. * @var Exception
  11. */
  12. private $exception;
  13. public function __construct(Job $job, Exception $exception)
  14. {
  15. $this->job = $job;
  16. $this->exception = $exception;
  17. }
  18. public function getJob(): Job
  19. {
  20. return $this->job;
  21. }
  22. public function getException(): Exception
  23. {
  24. return $this->exception;
  25. }
  26. }