Completed
Push — master ( ac14ae...7b41ef )
by Rougin
04:01
created

Container::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
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\AbstractContainer;
7
use Zapheus\Container\ContainerInterface;
8
9
/**
10
 * Zapheus to PSR-11 Container Bridge
11
 *
12
 * @package Zapheus
13
 * @author  Rougin Royce Gutib <[email protected]>
14
 */
15
class Container extends AbstractContainer 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