Completed
Pull Request — master (#299)
by Alexander
02:00
created

Sprint   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
eloc 14
c 1
b 1
f 1
dl 0
loc 41
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A setName() 0 5 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: meshulam
5
 * Date: 23/09/2017
6
 * Time: 14:17.
7
 */
8
9
namespace JiraRestApi\Sprint;
10
11
use JiraRestApi\JsonSerializableTrait;
12
13
class Sprint implements \JsonSerializable
14
{
15
    use JsonSerializableTrait;
16
17
    /* @var string */
18
    public $self;
19
20
    /* @var int */
21
    public $id;
22
23
    /* @var string */
24
    public $name;
25
26
    /* @var string */
27
    public $state;
28
29
    /* @var string */
30
    public $startDate;
31
32
    /* @var string */
33
    public $endDate;
34
35
    /* @var string */
36
    public $completeDate;
37
38
    /* @var int */
39
    public $originBoardId;
40
41
    /** @var string */
42
    public $goal;
43
44
    public function setName(string $sprintName): string
45
    {
46
        $this->name = $sprintName;
47
48
        return $sprintName;
49
    }
50
51
    public function getName(): string
52
    {
53
        return $this->name;
54
    }
55
}
56