Total Complexity | 3 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class EventQueueWorkerStartCommand extends Command |
||
13 | { |
||
14 | public const NAME = 'event:queue-worker:start'; |
||
15 | public const DESCRIPTION = 'Start event queue worker'; |
||
16 | |||
17 | /** |
||
18 | * @var \Jellyfish\Event\EventQueueWorkerInterface $eventQueueWorker |
||
19 | */ |
||
20 | protected $eventQueueWorker; |
||
21 | |||
22 | /** |
||
23 | * @param \Jellyfish\Event\EventQueueWorkerInterface $eventQueueWorker |
||
24 | */ |
||
25 | public function __construct( |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @return void |
||
35 | */ |
||
36 | protected function configure(): void |
||
37 | { |
||
38 | parent::configure(); |
||
39 | |||
40 | $this->setName(static::NAME); |
||
41 | $this->setDescription(static::DESCRIPTION); |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @param \Symfony\Component\Console\Input\InputInterface $input |
||
46 | * @param \Symfony\Component\Console\Output\OutputInterface $output |
||
47 | * |
||
48 | * @return int|null |
||
49 | */ |
||
50 | protected function execute(InputInterface $input, OutputInterface $output): ?int |
||
55 | } |
||
56 | } |
||
57 |