1 | <?php |
||
14 | class QueueProcessEvent extends QueueWorkerRunEvent |
||
15 | { |
||
16 | /** |
||
17 | * Command. |
||
18 | * |
||
19 | * @var CommandInterface |
||
20 | */ |
||
21 | private $command; |
||
22 | |||
23 | /** |
||
24 | * Command processor. |
||
25 | * |
||
26 | * @var CommandProcessorInterface |
||
27 | */ |
||
28 | private $processor; |
||
29 | |||
30 | /** |
||
31 | * Class constructor. |
||
32 | * |
||
33 | * @param WorkerInterface $worker Worker processing this command. |
||
34 | * @param CommandInterface $command |
||
35 | * @param CommandProcessorInterface $processor |
||
36 | * @param string $subsystem Subsystem name. |
||
37 | */ |
||
38 | 4 | public function __construct(WorkerInterface $worker, CommandInterface $command, CommandProcessorInterface $processor, $subsystem = null) |
|
44 | |||
45 | /** |
||
46 | * Get command. |
||
47 | * |
||
48 | * @return CommandInterface |
||
49 | */ |
||
50 | 2 | public function getCommand() |
|
54 | |||
55 | /** |
||
56 | * Get command processor. |
||
57 | * |
||
58 | * @return CommandProcessorInterface |
||
59 | */ |
||
60 | 2 | public function getProcessor() |
|
64 | } |
||
65 |