| 1 | <?php |
||
| 13 | abstract class QueueWorkerRunEvent extends Event |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Subsystem name. |
||
| 17 | * |
||
| 18 | * @var string|null |
||
| 19 | */ |
||
| 20 | private $subsystem; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Worker processing this request. |
||
| 24 | * |
||
| 25 | * @var WorkerInterface |
||
| 26 | */ |
||
| 27 | private $worker; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Class constructor. |
||
| 31 | * |
||
| 32 | * @param WorkerInterface $worker Worker processing this command. |
||
| 33 | * @param string $subsystem Subsystem name. |
||
| 34 | */ |
||
| 35 | 8 | public function __construct(WorkerInterface $worker, $subsystem = null) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Get subsystem name. |
||
| 43 | * |
||
| 44 | * @return string|null |
||
| 45 | */ |
||
| 46 | 2 | public function getSubsystem() |
|
| 50 | |||
| 51 | /** |
||
| 52 | * Get worker processing this request. |
||
| 53 | * |
||
| 54 | * @return WorkerInterface |
||
| 55 | */ |
||
| 56 | 2 | public function getWorker() |
|
| 60 | } |
||
| 61 |