Container   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 15
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Zapheus\Bridge\Psr\Interop;
4
5
use Psr\Container\ContainerInterface as PsrContainerInterface;
6
use Zapheus\Bridge\Psr\Zapheus\Container as ZapheusContainer;
7
use Zapheus\Container\ContainerInterface;
8
9
/**
10
 * Zapheus to PSR-11 Container Bridge
11
 *
12
 * @package Zapheus
13
 * @author  Rougin Gutib <[email protected]>
14
 */
15
class Container extends ZapheusContainer implements PsrContainerInterface
16
{
17
    /**
18
     * @var \Zapheus\Container\ContainerInterface
19
     */
20
    protected $container;
21
22
    /**
23
     * Initializes the container instance.
24
     *
25
     * @param \Zapheus\Container\ContainerInterface $container
26
     */
27 6
    public function __construct(ContainerInterface $container)
28
    {
29 6
        $this->container = $container;
30 6
    }
31
}
32