Passed
Push — master ( 9e7fa6...c5d7ac )
by KwangSeob
03:35
created

Author   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 23
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A jsonSerialize() 0 3 1
1
<?php
2
3
namespace JiraRestApi\Request;
4
5
class Author implements \JsonSerializable
6
{
7
    /** @var string */
8
    public $name;
9
10
    /** @var string */
11
    public $key;
12
13
    /** @var string */
14
    public $emailAddress;
15
16
    /** @var string */
17
    public $displayName;
18
19
    /** @var bool */
20
    public $active;
21
22
    /** @var string */
23
    public $timeZone;
24
25
    public function jsonSerialize()
26
    {
27
        return array_filter(get_object_vars($this));
28
    }
29
}
30