AbstractConsoleController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
dl 0
loc 26
c 1
b 1
f 0
wmc 2
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getServiceLocator() 0 4 1
1
<?php
2
3
namespace RabbitMqModule\Controller;
4
5
use Interop\Container\ContainerInterface;
6
use Zend\Mvc\Console\Controller\AbstractConsoleController as BaseController;
7
8
/**
9
 * Class AbstractConsoleController
10
 * @package RabbitMqModule\Controller
11
 */
12
class AbstractConsoleController extends BaseController
13
{
14
    /**
15
     * @var ContainerInterface
16
     */
17
    protected $container;
18
19
    /**
20
     * ConsumerController constructor.
21
     *
22
     * @param ContainerInterface $container
23
     */
24 17
    public function __construct(ContainerInterface $container)
25
    {
26 17
        $this->container = $container;
27 17
    }
28
29
30
    /**
31
     * @return ContainerInterface
32
     */
33 2
    protected function getServiceLocator()
34
    {
35 2
        return $this->container;
36
    }
37
}
38