Passed
Push — master ( ff2040...6f6996 )
by KwangSeob
02:18
created

ContentField::jsonSerialize()   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\Issue;
4
5
class ContentField implements \JsonSerializable
6
{
7
    /** @var string */
8
    public $type;
9
10
    /** @var array */
11
    public $content;
12
13
    /** @var array */
14
    public $attrs;
15
16
    public function __construct()
17
    {
18
        $this->content = [];
19
    }
20
21
    public function jsonSerialize()
22
    {
23
        return array_filter(get_object_vars($this));
24
    }
25
}
26