BaseRabbitMqCommand::setContainer()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 0
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace OldSound\RabbitMqBundle\Command;
4
5
use Symfony\Component\DependencyInjection\ContainerInterface;
6
use Symfony\Component\Console\Command\Command;
7
8
abstract class BaseRabbitMqCommand extends Command
9
{
10
    /**
11
     * @var ContainerInterface
12
     */
13
    protected $container;
14
15
    public function setContainer(?ContainerInterface $container = null): void
16
    {
17
        $this->container = $container;
18
    }
19
20
    /**
21
     * @return ContainerInterface
22
     */
23
    public function getContainer()
24
    {
25
        return $this->container;
26
    }
27
}
28