DocCommentTrait::getDocComment()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
ccs 2
cts 2
cp 1
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Benoth\StaticReflection\Reflection\Parts;
4
5
trait DocCommentTrait
6
{
7
    /**
8
     * @type string Doc comments
9
     */
10
    protected $docComment;
11
12
    /**
13
     * Gets doc comments.
14
     *
15
     * @return string
16
     */
17 9
    public function getDocComment()
18
    {
19 9
        return $this->docComment;
20
    }
21
22
    /**
23
     * Sets doc comments.
24
     *
25
     * @param string $docComment
26
     *
27
     * @return self
28
     */
29 1101
    public function setDocComment($docComment)
30
    {
31 1101
        $this->docComment = $docComment;
32
33 1101
        return $this;
34
    }
35
}
36