Completed
Push — master ( 30a2b5...89612e )
by Axel
02:59
created

Sprint   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 57
Duplicated Lines 0 %

Test Coverage

Coverage 90%

Importance

Changes 0
Metric Value
wmc 8
eloc 17
dl 0
loc 57
ccs 18
cts 20
cp 0.9
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
A setBeginAt() 0 5 1
A getDemoUrl() 0 3 1
A getBeginAt() 0 3 1
A setEndedAt() 0 5 1
A setDemoUrl() 0 5 1
A getEndedAt() 0 3 1
A setId() 0 5 1
1
<?php
2
3
namespace Scrumban\Model;
4
5
abstract class Sprint
6
{
7
    /** @var int **/
8
    protected $id;
9
    /** @var string **/
10
    protected $demoUrl;
11
    /** @var \DateTime **/
12
    protected $beginAt;
13
    /** @var \DateTime **/
14
    protected $endedAt;
15
    
16 3
    public function setId(int $id): self
17
    {
18 3
        $this->id = $id;
19
        
20 3
        return $this;
21
    }
22
    
23 2
    public function getId(): int
24
    {
25 2
        return $this->id;
26
    }
27
    
28 4
    public function setDemoUrl(string $demoUrl): self
29
    {
30 4
        $this->demoUrl = $demoUrl;
31
        
32 4
        return $this;
33
    }
34
    
35
    public function getDemoUrl(): ?string
36
    {
37
        return $this->demoUrl;
38
    }
39
    
40 4
    public function setBeginAt(\DateTime $beginAt): self
41
    {
42 4
        $this->beginAt = $beginAt;
43
        
44 4
        return $this;
45
    }
46
    
47 2
    public function getBeginAt(): \DateTime
48
    {
49 2
        return $this->beginAt;
50
    }
51
    
52 4
    public function setEndedAt(\DateTime $endedAt): self
53
    {
54 4
        $this->endedAt = $endedAt;
55
        
56 4
        return $this;
57
    }
58
    
59 2
    public function getEndedAt(): \DateTime
60
    {
61 2
        return $this->endedAt;
62
    }
63
}