Completed
Push — master ( 0a4926...d192d3 )
by Jan Philipp
24s queued 11s
created

RuntimeParameters   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 42
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
    /**
13
     * @var array
14
     */
15
    private $overwrites;
16
17
    /**
18
     * @var array
19
     */
20
    private $commands;
21
22
    public function __construct(
23
        array $appParams,
24
        array $commands,
25
        array $overwrites
26
    ) {
27
        $this->appParams = $appParams;
28
        $this->overwrites = $overwrites;
29
        $this->commands = $commands;
30
    }
31
32
    public function getAppParams(): array
33
    {
34
        return $this->appParams;
35
    }
36
37
    public function getOverwrites(): array
38
    {
39
        return $this->overwrites;
40
    }
41
42
    public function getCommands(): array
43
    {
44
        return $this->commands;
45
    }
46
}
47