1 | <?php |
||
7 | class WorkerExceptionEvent extends Event |
||
8 | { |
||
9 | |||
10 | const EVENT_ON_FAILURE = 'worker.on_failure'; |
||
11 | |||
12 | /** |
||
13 | * @var Worker |
||
14 | */ |
||
15 | private $worker; |
||
16 | |||
17 | /** |
||
18 | * @var \Exception |
||
19 | */ |
||
20 | private $exception; |
||
21 | |||
22 | public function __construct(Worker $worker, \Exception $exception) |
||
27 | |||
28 | /** |
||
29 | * @return \Exception |
||
30 | */ |
||
31 | public function getException() |
||
35 | |||
36 | /** |
||
37 | * @return Worker |
||
38 | */ |
||
39 | public function getWorker() |
||
43 | } |
||
44 |