Completed
Pull Request — master (#38)
by Aleksandr
07:11
created

GroupConsumerCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 6
c 1
b 0
f 1
dl 0
loc 15
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getConsumerService() 0 3 1
A configure() 0 7 1
1
<?php
2
3
namespace OldSound\RabbitMqBundle\Command;
4
5
class GroupConsumerCommand extends BaseConsumerCommand
6
{
7
    protected function configure()
8
    {
9
        parent::configure();
10
11
        $this
12
            ->setName('rabbitmq:group:consumer')
13
            ->setDescription('Synchronous execute grouped consumers')
14
        ;
15
    }
16
17
    protected function getConsumerService()
18
    {
19
        return 'old_sound_rabbit_mq.%s_group';
20
    }
21
}