Passed
Pull Request — master (#74)
by Rustam
02:43
created

ContainerProxy   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Yii\Debug\Proxy;
6
7
use Psr\Container\ContainerInterface;
8
use Yiisoft\Di\Container;
9
10
final class ContainerProxy extends ContainerInterfaceProxy
11
{
12 2
    public function __construct(ContainerInterface $container, ContainerProxyConfig $config)
13
    {
14 2
        if ($container instanceof Container) {
15 2
            $delegator = new ContainerDelegator($container);
16 2
            $delegator->delegateLookup($this);
17
        }
18
19 2
        parent::__construct($container, $config);
20 2
    }
21
}
22