Passed
Pull Request — master (#330)
by
unknown
12:21
created

CommentV3   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 1
Metric Value
eloc 5
c 3
b 0
f 1
dl 0
loc 11
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A setBody() 0 6 1
1
<?php
2
3
namespace JiraRestApi\Issue;
4
5
class CommentV3 extends Comment
6
{
7
    /** @var \JiraRestApi\Issue\DescriptionV3|null */
8
    public $body;
9
    
10
    public function setBody($body)
11
    {
12
        $this->body = new DescriptionV3();
13
        $this->body->addDescriptionContent('paragraph', $body);
14
15
        return $this;
16
    }
17
}
18