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

Container   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 17
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Zapheus\Bridge\Psr\Zapheus;
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 ContainerInterface
16
{
17
    /**
18
     * @var \Psr\Container\ContainerInterface
19
     */
20
    protected $container;
21
22
    /**
23
     * Initializes the container instance.
24
     *
25
     * @param \Psr\Container\ContainerInterface $container
26
     */
27 6
    public function __construct(PsrContainerInterface $container)
28
    {
29 6
        $this->container = $container;
30 6
    }
31
}
32