Completed
Pull Request — master (#157)
by
unknown
02:23
created

Sprint   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 45
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A jsonSerialize() 0 3 1
A getName() 0 2 1
A setName() 0 3 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
class Sprint implements \JsonSerializable
12
{
13
    /**
14
     * return only if Project query by key(not id).
15
     *
16
     * @var string
17
     */
18
    public $expand;
19
20
    /* @var string */
21
    public $self;
22
23
    /* @var string */
24
    public $id;
25
26
27
    /* @var string*/
28
    public $name;
29
30
    /* @var string */
31
    //public $type;
32
33
    /* @var string */
34
    public $state;
35
36
    /* @var string */
37
    public $startDate;
38
39
    /* @var string */
40
    public $endDate;
41
42
    /* @var string */
43
    public $originalBoardiD;
44
45
    public function jsonSerialize()
46
    {
47
        return array_filter(get_object_vars($this));
48
    }
49
50
    public function setName ($sprintName) {
51
        $this->name = $sprintName;
52
        return $sprintName;
53
    }
54
    public function getName () {
55
        return $this->name;
56
    }
57
58
}