Completed
Push — master ( 45987f...d5d263 )
by KwangSeob
11s
created

Board::getType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace JiraRestApi\Board;
4
5
use JiraRestApi\ClassSerialize;
6
7
class Board implements \JsonSerializable
8
{
9
    use ClassSerialize;
10
11
    /** @var int */
12
    public $id;
13
14
    /** @var string */
15
    public $self;
16
17
    /** @var string */
18
    public $name;
19
20
    /** @var string */
21
    public $type;
22
23
    /**
24
     * Location [\JiraRestApi\Board\Location].
25
     *
26
     * @var \JiraRestApi\Board\Location
27
     */
28
    public $location;
29
30
    /**
31
     * Get board id.
32
     */
33
    public function getId()
34
    {
35
        return $this->id;
36
    }
37
38
    /**
39
     * Get board url.
40
     */
41
    public function getSelf()
42
    {
43
        return $this->self;
44
    }
45
46
    /**
47
     * Get board name.
48
     */
49
    public function getName()
50
    {
51
        return $this->name;
52
    }
53
54
    /**
55
     * Get board type.
56
     */
57
    public function getType()
58
    {
59
        return $this->type;
60
    }
61
62
    /**
63
     * Get location.
64
     */
65
    public function getLocation()
66
    {
67
        return $this->location;
68
    }
69
70
    public function jsonSerialize()
71
    {
72
        return array_filter(get_object_vars($this), function ($var) {
73
            return !is_null($var);
74
        });
75
    }
76
}
77