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

Sprint::setName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
cc 1
eloc 2
c 1
b 1
f 1
nc 1
nop 1
dl 0
loc 5
rs 10
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