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

ScriptsPath   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 37
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getNamespace() 0 4 1
A getPath() 0 4 1
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