Total Complexity | 5 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
23 | trait ContainerAwareTrait |
||
24 | { |
||
25 | private $container; |
||
26 | |||
27 | 1 | public function __construct(ContainerInterface $container = null) |
|
28 | { |
||
29 | 1 | $this->container = $container; |
|
30 | 1 | } |
|
31 | |||
32 | 1 | public function getContainer() : ContainerInterface |
|
35 | } |
||
36 | |||
37 | |||
38 | 1 | public function setContainer(ContainerInterface $container) : self |
|
43 | } |
||
44 | |||
45 | |||
46 | /** |
||
47 | * A shortcut to get a value with a default |
||
48 | */ |
||
49 | 1 | public function containerGet(String $id, $value=null) |
|
56 |