Completed
Push — master ( 25d603...d9c7f5 )
by jean
07:48 queued 02:26
created

EntityResolverWhereBuilderRegistry   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 13
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A resolveService() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Darkilliant\ImportBundle\Registry;
6
7
use Darkilliant\ImportBundle\WhereBuilder\WhereBuilderInterface;
8
use Psr\Container\ContainerInterface;
9
10
/**
11
 * @internal
12
 */
13
class EntityResolverWhereBuilderRegistry
14
{
15
    /** @var ContainerInterface */
16
    private $container;
17
18 1
    public function __construct(ContainerInterface $container)
19
    {
20 1
        $this->container = $container;
21 1
    }
22
23 1
    public function resolveService(string $className): WhereBuilderInterface
24
    {
25 1
        return $this->container->get($className);
26
    }
27
}
28