DocCommentTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 31
rs 10
ccs 5
cts 5
cp 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDocComment() 0 4 1
A setDocComment() 0 6 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