Total Complexity | 3 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class ContainerHelper extends Helper |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * Container. |
||
22 | * |
||
23 | * @var Container |
||
24 | */ |
||
25 | private $_container; |
||
26 | |||
27 | /** |
||
28 | * Creates helper instance. |
||
29 | * |
||
30 | * @param Container $container Container. |
||
31 | */ |
||
32 | 3 | public function __construct(Container $container) |
|
33 | { |
||
34 | 3 | $this->_container = $container; |
|
35 | 3 | } |
|
36 | |||
37 | /** |
||
38 | * Returns container. |
||
39 | * |
||
40 | * @return Container |
||
41 | */ |
||
42 | 1 | public function getContainer() |
|
43 | { |
||
44 | 1 | return $this->_container; |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | 1 | public function getName() |
|
53 | } |
||
54 | |||
55 | } |
||
56 |