1 | <?php |
||
12 | class QueueBeforeTranslateEvent extends QueueWorkerRunEvent |
||
13 | { |
||
14 | /** |
||
15 | * Command data before translation. |
||
16 | * |
||
17 | * @var mixed |
||
18 | */ |
||
19 | private $commandData; |
||
20 | |||
21 | /** |
||
22 | * Class constructor. |
||
23 | * |
||
24 | * @param WorkerInterface $worker Worker processing this command. |
||
25 | * @param mixed $commandData |
||
26 | * @param string $subsystem Subsystem name. |
||
27 | */ |
||
28 | 3 | public function __construct(WorkerInterface $worker, $commandData, $subsystem = null) |
|
33 | |||
34 | /** |
||
35 | * Get command data before translation. |
||
36 | * |
||
37 | * @return mixed |
||
38 | */ |
||
39 | 1 | public function getCommandData() |
|
43 | |||
44 | /** |
||
45 | * Set new command data. |
||
46 | * |
||
47 | * @param mixed $commandData |
||
48 | */ |
||
49 | 1 | public function setCommandData($commandData) |
|
53 | } |
||
54 |