Failed Conditions
Push — master ( 07197c...02c092 )
by Yo
02:21
created

Template   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 67
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 67
ccs 0
cts 27
cp 0
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A setNamespace() 0 6 1
A getId() 0 4 1
A getTarget() 0 4 1
A getSource() 0 4 1
A getNamespace() 0 4 1
1
<?php
2
namespace Yoanm\InitPhpRepository\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