Completed
Push — master ( 482c5f...79d98c )
by Jan Philipp
13s queued 11s
created

ConfigEnvironment::getDotenvPaths()   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
4
namespace Shopware\Psh\Config;
5
6
/**
7
 * A single configuration environment
8
 */
9
class ConfigEnvironment
10
{
11
    /**
12
     * @var bool
13
     */
14
    private $hidden;
15
16
    /**
17
     * @var array
18
     */
19
    private $commandPaths;
20
21
    /**
22
     * @var array
23
     */
24
    private $dynamicVariables;
25
26
    /**
27
     * @var array
28
     */
29
    private $constants;
30
31
    /**
32
     * @var array
33
     */
34
    private $templates;
35
36
    /**
37
     * @var array
38
     */
39
    private $dotenvPaths;
40
41
    /**
42
     * @param array $commandPaths
43
     * @param array $dynamicVariables
44
     * @param array $constants
45
     * @param array $templates
46
     * @param array $dotenvPaths
47
     * @param bool $hidden
48
     */
49
    public function __construct(
50
        bool $hidden,
51
        array $commandPaths = [],
52
        array $dynamicVariables = [],
53
        array $constants = [],
54
        array $templates = [],
55
        array $dotenvPaths = []
56
    ) {
57
        $this->hidden = $hidden;
58
        $this->commandPaths = $commandPaths;
59
        $this->dynamicVariables = $dynamicVariables;
60
        $this->constants = $constants;
61
        $this->templates = $templates;
62
        $this->dotenvPaths = $dotenvPaths;
63
    }
64
65
    /**
66
     * @return bool
67
     */
68
    public function isHidden(): bool
69
    {
70
        return $this->hidden;
71
    }
72
73
    /**
74
     * @return array
75
     */
76
    public function getAllScriptsPaths(): array
77
    {
78
        return $this->commandPaths;
79
    }
80
81
    /**
82
     * @return array
83
     */
84
    public function getDynamicVariables(): array
85
    {
86
        return $this->dynamicVariables;
87
    }
88
89
    /**
90
     * @return array
91
     */
92
    public function getConstants(): array
93
    {
94
        return $this->constants;
95
    }
96
97
    /**
98
     * @return array
99
     */
100
    public function getTemplates(): array
101
    {
102
        return $this->templates;
103
    }
104
105
    /**
106
     * @return array
107
     */
108
    public function getDotenvPaths(): array
109
    {
110
        return $this->dotenvPaths;
111
    }
112
}
113