ConfiguratorData::getConfig()   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 2
Bugs 0 Features 0
Metric Value
eloc 1
c 2
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 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