AnonConsumerCommand   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 16
ccs 0
cts 11
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 8 1
A getConsumerService() 0 3 1
1
<?php
2
3
namespace OldSound\RabbitMqBundle\Command;
4
5
class AnonConsumerCommand extends BaseConsumerCommand
6
{
7
    protected function configure()
8
    {
9
        parent::configure();
10
11
        $this->setName('rabbitmq:anon-consumer');
12
        $this->setDescription('Executes an anonymous consumer');
13
        $this->getDefinition()->getOption('messages')->setDefault(1);
14
        $this->getDefinition()->getOption('route')->setDefault('#');
15
16
    }
17
18
    protected function getConsumerService()
19
    {
20
        return 'old_sound_rabbit_mq.%s_anon';
21
    }
22
}
23