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

RuntimeParameters::getCommands()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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