Passed
Pull Request — master (#366)
by
unknown
08:58 queued 05:47
created

IssueType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A jsonSerialize() 0 3 1
1
<?php
2
3
namespace JiraRestApi\IssueType;
4
5
class IssueType implements \JsonSerializable
6
{
7
8
    /** @var string */
9
    public $self;
10
11
    /** @var int */
12
    public $id;
13
14
    /** @var string */
15
    public $description;
16
17
    /** @var string */
18
    public $iconUrl;
19
20
    /** @var string */
21
    public $name;
22
23
    /** @var boolean */
24
    public $subtask;
25
26
    /** @var integer */
27
    public $avatarId;
28
29
    public function jsonSerialize()
30
    {
31
        return array_filter(get_object_vars($this));
32
    }
33
}
34