Test Failed
Push — master ( 82b045...1f684d )
by Mike
04:10
created

WorkerCommand::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 2
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
4
namespace Xervice\RabbitMQ\Communication\Console\Command;
5
6
7
use Symfony\Component\Console\Input\InputInterface;
8
use Symfony\Component\Console\Output\OutputInterface;
9
use Xervice\Console\Business\Model\Command\AbstractCommand;
10
11
/**
12
 * @method \Xervice\RabbitMQ\Business\RabbitMQFacade getFacade()
13
 */
14
class WorkerCommand extends AbstractCommand
15
{
16
    /**
17
     * @throws \Symfony\Component\Console\Exception\InvalidArgumentException
18
     */
19
    protected function configure(): void
20
    {
21
        $this->setName('queue:worker:run');
22
    }
23
24
    /**
25
     * @param \Symfony\Component\Console\Input\InputInterface $input
26
     * @param \Symfony\Component\Console\Output\OutputInterface $output
27
     *
28
     * @return int|void
29
     */
30
    public function run(InputInterface $input, OutputInterface $output)
31
    {
32
        $this->getFacade()->runWorker();
33
    }
34
}