Passed
Pull Request — master (#202)
by
unknown
02:43 queued 58s
created

CustomFieldUsage::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace JiraRestApi\Issue;
4
5
class CustomFieldUsage implements \JsonSerializable
6
{
7
    /** @var string */
8
    public $fieldName;
9
10
    /** @var int */
11
    public $customFieldId;
12
13
    /** @var int */
14
    public $issueCountWithVersionInCustomField;
15
16
    public function __construct()
17
    {
18
    }
19
20
    public function jsonSerialize()
21
    {
22
        return array_filter(get_object_vars($this));
23
    }
24
25
    public function setFieldName($fieldName)
26
    {
27
        $this->fieldName = $fieldName;
28
29
        return $this;
30
    }
31
32
    public function setCustomFieldId($customFieldId)
33
    {
34
        $this->customFieldId = $customFieldId;
35
36
        return $this;
37
    }
38
39
    public function setIssueCountWithVersionInCustomField($issueCountWithVersionInCustomField)
40
    {
41
        $this->issueCountWithVersionInCustomField = $issueCountWithVersionInCustomField;
42
43
        return $this;
44
    }
45
}
46