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

WorkerCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 19
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A run() 0 3 1
A configure() 0 3 1
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
}