ConfiguratorData   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 4
eloc 7
c 2
b 0
f 0
dl 0
loc 23
ccs 9
cts 9
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getConfig() 0 3 1
A getContext() 0 3 1
A setConfig() 0 3 1
1
<?php
2
3
namespace Khusseini\PimcoreRadBrickBundle\Configurator;
4
5
use Khusseini\PimcoreRadBrickBundle\ContextInterface;
6
7
class ConfiguratorData
8
{
9
    private $context;
10
    private $config = [];
11
12 32
    public function __construct(ContextInterface $context)
13
    {
14 32
        $this->context = $context;
15 32
    }
16
17 20
    public function getContext(): ContextInterface
18
    {
19 20
        return $this->context;
20
    }
21
22 26
    public function getConfig(): array
23
    {
24 26
        return $this->config;
25
    }
26
27 32
    public function setConfig(array $config): void
28
    {
29 32
        $this->config = $config;
30 32
    }
31
}
32