ParameterStorage::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
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