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

ContentField   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A jsonSerialize() 0 3 1
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