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

CommentV3::setBody()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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