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

Author::jsonSerialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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