Test Failed
Push — master ( 2cc1d9...298910 )
by Alexander
18:21 queued 15:33
created

ProxyServiceProvider::getDefinitions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
ccs 3
cts 3
cp 1
crap 1
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Yii\Debug;
6
7
use Psr\Container\ContainerInterface;
8
use Yiisoft\Di\Contracts\ServiceProviderInterface;
9
use Yiisoft\Yii\Debug\Proxy\ContainerInterfaceProxy;
10
use Yiisoft\Yii\Debug\Proxy\ContainerProxyConfig;
11
12
final class ProxyServiceProvider implements ServiceProviderInterface
13
{
14
    /**
15
     * @psalm-suppress InaccessibleMethod
16
     */
17
    public function getDefinitions(): array
18 1
    {
19
        return [
20 1
            ContainerInterface::class => static function (ContainerInterface $container) {
21 1
                return new ContainerInterfaceProxy($container, $container->get(ContainerProxyConfig::class));
22 1
            },
23 1
        ];
24 1
    }
25
26 1
    public function getExtensions(): array
27
    {
28
        return [];
29
    }
30
}
31