Completed
Pull Request — master (#111)
by Jan Philipp
02:16
created

RuntimeParameters   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 49
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
A getAppParams() 0 4 1
A getOverwrites() 0 4 1
A getCommands() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace Shopware\Psh\Application;
4
5
class RuntimeParameters
6
{
7
    /**
8
     * @var array
9
     */
10
    private $appParams;
11
    /**
12
     * @var array
13
     */
14
    private $overwrites;
15
    /**
16
     * @var array
17
     */
18
    private $commands;
19
20
    public function __construct(
21
        array $appParams,
22
        array $commands,
23
        array $overwrites
24
    ) {
25
        $this->appParams = $appParams;
26
        $this->overwrites = $overwrites;
27
        $this->commands = $commands;
28
    }
29
30
    /**
31
     * @return array
32
     */
33
    public function getAppParams(): array
34
    {
35
        return $this->appParams;
36
    }
37
38
    /**
39
     * @return array
40
     */
41
    public function getOverwrites(): array
42
    {
43
        return $this->overwrites;
44
    }
45
46
    /**
47
     * @return array
48
     */
49
    public function getCommands(): array
50
    {
51
        return $this->commands;
52
    }
53
}
54