PimpleAdapter   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 35
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A get() 0 4 1
A getParameter() 0 4 1
1
<?php
2
3
namespace Saxulum\LazyService\Container;
4
5
use Pimple\Container;
6
7
class PimpleAdapter implements ReaderInterface
8
{
9
    /**
10
     * @var Container
11
     */
12
    protected $container;
13
14
    /**
15
     * @param Container $container
16
     */
17
    public function __construct(Container $container)
18
    {
19
        $this->container = $container;
20
    }
21
22
    /**
23
     * @param string $name
24
     *
25
     * @return mixed
26
     */
27
    public function get($name)
28
    {
29
        return $this->container[$name];
30
    }
31
32
    /**
33
     * @param string $name
34
     *
35
     * @return mixed
36
     */
37
    public function getParameter($name)
38
    {
39
        return $this->container[$name];
40
    }
41
}
42