1 | <?php |
||
16 | class JobProcessedEvent extends Event |
||
17 | { |
||
18 | /** |
||
19 | * The connection name. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $connectionName; |
||
24 | |||
25 | /** |
||
26 | * The job instance. |
||
27 | * |
||
28 | * @var JobContractInterface |
||
29 | */ |
||
30 | protected $job; |
||
31 | |||
32 | /** |
||
33 | * Create a new event instance. |
||
34 | * |
||
35 | * @param string $connectionName |
||
36 | * @param JobContractInterface $job |
||
37 | */ |
||
38 | public function __construct(string $connectionName, JobContractInterface $job) |
||
43 | |||
44 | /** |
||
45 | * @return string |
||
46 | */ |
||
47 | public function getConnectionName(): string |
||
51 | |||
52 | /** |
||
53 | * @return JobContractInterface |
||
54 | */ |
||
55 | public function getJob(): JobContractInterface |
||
59 | } |
||
60 |