Container::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 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