Version   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 6
eloc 13
dl 0
loc 43
ccs 0
cts 26
cp 0
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getPlannedAt() 0 3 1
A setReleasedAt() 0 5 1
A setPlannedAt() 0 5 1
A getReleasedAt() 0 3 1
A getId() 0 3 1
A setId() 0 5 1
1
<?php
2
3
namespace Scrumban\Model;
4
5
class Version
6
{
7
    /** @var string **/
8
    protected $id;
9
    /** @var \DateTime **/
10
    protected $plannedAt;
11
    /** @var \DateTime **/
12
    protected $releasedAt;
13
    
14
    public function setId(string $id): self
15
    {
16
        $this->id = $id;
17
        
18
        return $this;
19
    }
20
    
21
    public function getId(): string
22
    {
23
        return $this->id;
24
    }
25
    
26
    public function setPlannedAt(\DateTime $plannedAt): self
27
    {
28
        $this->plannedAt = $plannedAt;
29
        
30
        return $this;
31
    }
32
    
33
    public function getPlannedAt(): \DateTime
34
    {
35
        return $this->plannedAt;
36
    }
37
    
38
    public function setReleasedAt(\DateTime $releasedAt): self
39
    {
40
        $this->releasedAt = $releasedAt;
41
        
42
        return $this;
43
    }
44
    
45
    public function getReleasedAt(): \DateTime
46
    {
47
        return $this->releasedAt;
48
    }
49
}