AnonConsumerCommand::configure()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 5
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 8
ccs 0
cts 7
cp 0
crap 2
rs 10
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