| 1 | <?php |
||
| 13 | class RejectedExecutionEvent extends Event |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var Job |
||
| 17 | */ |
||
| 18 | protected $job; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var Envelope |
||
| 22 | */ |
||
| 23 | protected $envelope; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var Exception|Throwable |
||
| 27 | */ |
||
| 28 | protected $error; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var Worker |
||
| 32 | */ |
||
| 33 | protected $worker; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var ExecutionInfo |
||
| 37 | */ |
||
| 38 | protected $info; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param Exception|Throwable $error |
||
| 42 | */ |
||
| 43 | public function __construct(Envelope $envelope, $error, Worker $worker, ExecutionInfo $info) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return Job |
||
| 54 | */ |
||
| 55 | public function getJob() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return Envelope |
||
| 62 | */ |
||
| 63 | public function getEnvelope() |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @return Exception|Throwable |
||
| 70 | */ |
||
| 71 | public function getError() |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @return Worker |
||
| 78 | */ |
||
| 79 | public function getWorker() |
||
| 83 | |||
| 84 | /** |
||
| 85 | * @return ExecutionInfo |
||
| 86 | */ |
||
| 87 | public function getInfo() |
||
| 91 | } |