AbstractConsoleController::getServiceLocator()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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