ParameterStorage   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 28
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getParameter() 0 4 1
A getGroupOfParameters() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Symplify\NetteAdapterForSymfonyBundles\Tests\ContainerSource;
6
7
final class ParameterStorage
8
{
9
    /**
10
     * @var string
11
     */
12
    private $parameter;
13
14
    /**
15
     * @var array
16
     */
17
    private $groupOfParameters = [];
18
19
    public function __construct(string $parameter, array $groupOfParameters)
20
    {
21
        $this->parameter = $parameter;
22
        $this->groupOfParameters = $groupOfParameters;
23
    }
24
25
    public function getParameter() : string
26
    {
27
        return $this->parameter;
28
    }
29
30
    public function getGroupOfParameters() : array
31
    {
32
        return $this->groupOfParameters;
33
    }
34
}
35