BaseRabbitMqCommand   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 4
c 0
b 0
f 0
dl 0
loc 21
ccs 0
cts 5
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getContainer() 0 3 1
A setContainer() 0 3 1
1
<?php
2
3
namespace OldSound\RabbitMqBundle\Command;
4
5
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
6
use Symfony\Component\DependencyInjection\ContainerInterface;
7
use Symfony\Component\Console\Command\Command;
8
9
abstract class BaseRabbitMqCommand extends Command implements ContainerAwareInterface
10
{
11
    /**
12
     * @var ContainerInterface
13
     */
14
    protected $container;
15
16
    /**
17
     * {@inheritDoc}
18
     */
19
    public function setContainer(ContainerInterface $container = null)
20
    {
21
        $this->container = $container;
22
    }
23
24
    /**
25
     * @return ContainerInterface
26
     */
27
    public function getContainer()
28
    {
29
        return $this->container;
30
    }
31
}
32