Completed
Push — master ( 4966ad...2cf3a8 )
by Derek Stephen
02:07
created

AbstractController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 19
ccs 0
cts 8
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A init() 0 4 1
A getContainerObject() 0 4 1
1
<?php
2
3
namespace Del\Common\ZF1\Controller;
4
5
use Del\Common\ContainerService;
6
use Zend_Controller_Action;
7
8
class AbstractController extends Zend_Controller_Action
9
{
10
    /** @var  \Pimple\Container $container */
11
    private $container;
12
13
    public function init()
14
    {
15
        $this->container = ContainerService::getInstance()->getContainer();
16
    }
17
18
    /**
19
     * @param $key
20
     * @return mixed
21
     */
22
    public function getContainerObject($key)
23
    {
24
        return $this->container[$key];
25
    }
26
}