Core   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 5
c 1
b 0
f 0
dl 0
loc 28
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A container() 0 3 1
A __construct() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BinaryCube\CarrotMQ;
6
7
use Psr\Log\LoggerInterface;
8
9
/**
10
 * Class Core
11
 */
12
abstract class Core extends Component
13
{
14
15
    /**
16
     * @var Container
17
     */
18
    protected $container;
19
20
    /**
21
     * Constructor.
22
     *
23
     * @param string               $id
24
     * @param Container            $container
25
     * @param LoggerInterface|null $logger
26
     */
27
    public function __construct(string $id, Container $container, $logger = null)
28
    {
29
        parent::__construct($id, $logger);
30
31
        $this->container = $container;
32
    }
33
34
    /**
35
     * @return Container
36
     */
37
    public function container()
38
    {
39
        return $this->container;
40
    }
41
42
}
43