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

Resolver   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 25
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getContainer() 0 4 1
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