1 | <?php |
||
14 | class SuccessfulExecutionEvent extends Event |
||
15 | { |
||
16 | /** |
||
17 | * @var Envelope |
||
18 | */ |
||
19 | protected $envelope; |
||
20 | |||
21 | /** |
||
22 | * @var Worker |
||
23 | */ |
||
24 | protected $worker; |
||
25 | |||
26 | /** |
||
27 | * @var ExecutionInfo |
||
28 | */ |
||
29 | protected $info; |
||
30 | |||
31 | /** |
||
32 | * SuccessfulExecutionEvent constructor. |
||
33 | * @param Envelope $envelope |
||
34 | * @param Worker $worker |
||
35 | */ |
||
36 | public function __construct(Envelope $envelope, Worker $worker, ExecutionInfo $info) |
||
42 | |||
43 | /** |
||
44 | * @return Envelope |
||
45 | */ |
||
46 | public function getEnvelope() |
||
50 | |||
51 | /** |
||
52 | * @return \Workana\AsyncJobs\Job |
||
53 | */ |
||
54 | public function getJob() |
||
58 | |||
59 | /** |
||
60 | * @return Worker |
||
61 | */ |
||
62 | public function getWorker() |
||
66 | |||
67 | /** |
||
68 | * @return ExecutionInfo |
||
69 | */ |
||
70 | public function getInfo() |
||
74 | } |