Completed
Branch master (3b8125)
by
unknown
01:32
created

MultilineCommentTrait   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 30
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getMultilineComment() 0 8 2
A setMultilineComment() 0 4 1
1
<?php
2
3
namespace HelloWordPl\SimpleEntityGeneratorBundle\Lib\Traits;
4
5
use Doctrine\Common\Collections\ArrayCollection;
6
7
/**
8
 * @author Sławomir Kania <[email protected]>
9
 */
10
trait MultilineCommentTrait
11
{
12
13
    /**
14
     * Collection of comment rows
15
     *
16
     * @Type("Doctrine\Common\Collections\ArrayCollection<string>")
17
     */
18
    private $multilineComment = null;
19
20
    /**
21
     * @return ArrayCollection
22
     */
23
    public function getMultilineComment()
24
    {
25
        if (is_null($this->multilineComment)) {
26
            return new ArrayCollection();
27
        }
28
29
        return $this->multilineComment;
30
    }
31
32
    /**
33
     * @param ArrayCollection $multilineComment
34
     */
35
    public function setMultilineComment(ArrayCollection $multilineComment)
36
    {
37
        $this->multilineComment = $multilineComment;
38
    }
39
}
40