Passed
Pull Request — master (#228)
by
unknown
02:26
created

Location   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 86
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 17
dl 0
loc 86
rs 10
c 0
b 0
f 0
wmc 8

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getProjectKey() 0 3 1
A getName() 0 3 1
A getDisplayName() 0 3 1
A getProjectId() 0 3 1
A getProjectName() 0 3 1
A jsonSerialize() 0 4 1
A getAvatarUri() 0 3 1
A getProjectTypeKey() 0 3 1
1
<?php
2
3
namespace JiraRestApi\Board;
4
5
class Location implements \JsonSerializable
6
{
7
    /** @var int * */
8
    public $projectId;
9
10
    /** @var string * */
11
    public $displayName;
12
13
    /** @var string * */
14
    public $projectName;
15
16
    /** @var string * */
17
    public $projectKey;
18
19
    /** @var string * */
20
    public $projectTypeKey;
21
22
    /** @var string * */
23
    public $avatarUri;
24
25
    /** @var string * */
26
    public $name;
27
28
    /**
29
     * Get project id.
30
     */
31
    public function getProjectId()
32
    {
33
        return $this->projectId;
34
    }
35
36
    /**
37
     * Get project id.
38
     */
39
    public function getDisplayName()
40
    {
41
        return $this->displayName;
42
    }
43
44
    /**
45
     * Get project name.
46
     */
47
    public function getProjectName()
48
    {
49
        return $this->projectName;
50
    }
51
52
    /**
53
     * Get project key.
54
     */
55
    public function getProjectKey()
56
    {
57
        return $this->projectKey;
58
    }
59
60
    /**
61
     * Get project type key.
62
     */
63
    public function getProjectTypeKey()
64
    {
65
        return $this->projectTypeKey;
66
    }
67
68
    /**
69
     * Get avatar uri.
70
     */
71
    public function getAvatarUri()
72
    {
73
        return $this->avatarUri;
74
    }
75
76
    /**
77
     * Get name.
78
     */
79
    public function getName()
80
    {
81
        return $this->name;
82
    }
83
84
    /**
85
     * {@inheritdoc}
86
     */
87
    public function jsonSerialize()
88
    {
89
        return array_filter(get_object_vars($this), function ($var) {
90
            return !is_null($var);
91
        });
92
    }
93
}
94