Completed
Push — master ( 1ece6c...656998 )
by Jan Philipp
13s queued 11s
created

ScriptsPath::getNamespace()   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
     * @var string
13
     */
14
    private $path;
15
16
    /**
17
     * @param string $namespace
18
     * @param string $path
19
     */
20
    public function __construct(string $path, string $namespace = null)
21
    {
22
        $this->namespace = $namespace;
23
        $this->path = $path;
24
    }
25
26
    /**
27
     * @return string|null
28
     */
29
    public function getNamespace()
30
    {
31
        return $this->namespace;
32
    }
33
34
    /**
35
     * @return string
36
     */
37
    public function getPath(): string
38
    {
39
        return $this->path;
40
    }
41
}
42