Completed
Push — master ( fcd665...17ba5a )
by
unknown
03:40
created

ContainerAwareTrait::getContainer()   A

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 Thruster\Component\Container;
4
5
/**
6
 * Trait ContainerAwareTrait
7
 *
8
 * @package Thruster\Component\Container
9
 * @author  Aurimas Niekis <[email protected]>
10
 */
11
trait ContainerAwareTrait
12
{
13
    /**
14
     * @var Container
15
     */
16
    private $container;
17
18
    /**
19
     * @return Container
20
     */
21 1
    public function getContainer() : Container
22
    {
23 1
        return $this->container;
24
    }
25
26
    /**
27
     * @param Container $container
28
     *
29
     * @return $this
30
     */
31 1
    public function setContainer(Container $container)
32
    {
33 1
        $this->container = $container;
34
35 1
        return $this;
36
    }
37
}
38