Failed Conditions
Push — master ( c3b9f6...b14904 )
by Yo
02:03
created

Template::setNamespace()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
namespace Yoanm\DefaultPhpRepository\Model;
3
4
/**
5
 * Class Template
6
 */
7
class Template
8
{
9
    /** @var string */
10
    private $id;
11
    /** @var string */
12
    private $target;
13
    /** @var string */
14
    private $source;
15
    /** @var string */
16
    private $namespace = null;
17
18
    /**
19
     * @param string $id
20
     * @param string $source
21
     * @param string $target
22
     */
23
    public function __construct($id, $source, $target)
24
    {
25
        $this->id = $id;
26
        $this->source = $source;
27
        $this->target = $target;
28
    }
29
30
    /**
31
     * @param string $namespace
32
     *
33
     * @return Template
34
     */
35
    public function setNamespace($namespace)
36
    {
37
        $this->namespace = $namespace;
38
39
        return $this;
40
    }
41
42
    /**
43
     * @return string
44
     */
45
    public function getId()
46
    {
47
        return $this->id;
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function getTarget()
54
    {
55
        return $this->target;
56
    }
57
58
    /**
59
     * @return string
60
     */
61
    public function getSource()
62
    {
63
        return $this->source;
64
    }
65
66
    /**
67
     * @return string
68
     */
69
    public function getNamespace()
70
    {
71
        return $this->namespace;
72
    }
73
}
74