Completed
Pull Request — master (#93)
by Jan Philipp
01:41
created

ScriptsPath::isHidden()   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\Config;
4
5
class ScriptsPath
6
{
7
    /**
8
     * @var string
9
     */
10
    private $namespace;
11
12
    /**
13
     * @var bool
14
     */
15
    private $hidden;
16
17
    /**
18
     * @var string
19
     */
20
    private $path;
21
22
    /**
23
     * @param string $path
24
     * @param bool $hidden
25
     * @param string $namespace
26
     */
27
    public function __construct(string $path, bool $hidden, string $namespace = null)
28
    {
29
        $this->namespace = $namespace;
30
        $this->hidden = $hidden;
31
        $this->path = $path;
32
    }
33
34
    /**
35
     * @return string|null
36
     */
37
    public function getNamespace()
38
    {
39
        return $this->namespace;
40
    }
41
42
    /**
43
     * @return string
44
     */
45
    public function getPath(): string
46
    {
47
        return $this->path;
48
    }
49
50
    /**
51
     * @return bool
52
     */
53
    public function isHidden(): bool
54
    {
55
        return $this->hidden;
56
    }
57
}
58