Completed
Push — master ( c628d7...8aa25c )
by Miloš
01:17
created

Resolver::getContainer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Laganica\Di\Resolver;
4
5
use Psr\Container\ContainerInterface;
6
7
/**
8
 * Class Resolver
9
 *
10
 * @package Laganica\Di\Resolver
11
 */
12
abstract class Resolver implements ResolverInterface
13
{
14
    /**
15
     * @var ContainerInterface
16
     */
17
    private $container;
18
19
    /**
20
     * Resolver constructor.
21
     *
22
     * @param ContainerInterface $container
23
     */
24 6
    public function __construct(ContainerInterface $container)
25
    {
26 6
        $this->container = $container;
27 6
    }
28
29
    /**
30
     * @return ContainerInterface
31
     */
32 5
    protected function getContainer(): ContainerInterface
33
    {
34 5
        return $this->container;
35
    }
36
}
37