Completed
Push — develop ( cec1b5...82146f )
by Paul
02:04
created

DocumentationTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDocumentation() 0 3 1
A setDocumentation() 0 3 1
1
<?php
2
3
namespace PhpUnitGen\Model\PropertyTrait;
4
5
/**
6
 * Trait DocumentationTrait.
7
 *
8
 * @author     Paul Thébaud <[email protected]>.
9
 * @copyright  2017-2018 Paul Thébaud <[email protected]>.
10
 * @license    https://opensource.org/licenses/MIT The MIT license.
11
 * @link       https://github.com/paul-thebaud/phpunit-generator
12
 * @since      Class available since Release 2.0.0.
13
 */
14
trait DocumentationTrait
15
{
16
    /**
17
     * @var string|null $documentation The documentation.
18
     */
19
    protected $documentation;
20
21
    /**
22
     * @param string|null $documentation The new documentation to be set.
23
     */
24
    public function setDocumentation(?string $documentation): void
25
    {
26
        $this->documentation = $documentation;
27
    }
28
29
    /**
30
     * @return string|null The current documentation.
31
     */
32
    public function getDocumentation(): ?string
33
    {
34
        return $this->documentation;
35
    }
36
}
37