Passed
Push — master ( 80b57f...2460a5 )
by Yo
02:49
created

AutoloadEntry::getNamespace()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
namespace Yoanm\ComposerConfigManager\Domain\Model;
3
4
class AutoloadEntry
5
{
6
    /** @var string */
7
    private $namespace;
8
    /** @var string */
9
    private $path;
10
11
    /**
12
     * @param string $namespace
13
     * @param string $path
14
     */
15 3
    public function __construct($namespace, $path)
16
    {
17 3
        $this->namespace = $namespace;
18 3
        $this->path = $path;
19 3
    }
20
21
    /**
22
     * @return string
23
     */
24 3
    public function getNamespace()
25
    {
26 3
        return $this->namespace;
27
    }
28
29
    /**
30
     * @return string
31
     */
32 3
    public function getPath()
33
    {
34 3
        return $this->path;
35
    }
36
}
37