AbstractDocumentedGenerator::getDocumentation()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * @author stev leibelt <[email protected]>
4
 * @since 2014-05-02 
5
 */
6
7
namespace Net\Bazzline\Component\CodeGenerator;
8
9
/**
10
 * Class AbstractDocumentedGenerator
11
 * @package Net\Bazzline\Component\Locator\LocatorGenerator\Generator
12
 * @author stev leibelt <[email protected]>
13
 */
14
abstract class AbstractDocumentedGenerator extends AbstractGenerator
15
{
16
    /** @var bool */
17
    protected $completeDocumentationAutomatically = false;
18
19
    /**
20
     * @return null|DocumentationGenerator
21
     */
22
    final public function getDocumentation()
23
    {
24
        return $this->getGeneratorProperty('documentation');
25
    }
26
27
    /**
28
     * @param DocumentationGenerator $documentation
29
     * @param bool $completeAutomatically
30
     */
31
    final public function setDocumentation(DocumentationGenerator $documentation, $completeAutomatically = true)
32
    {
33
        $this->addGeneratorProperty('documentation', $documentation, false);
34
        $this->completeDocumentationAutomatically = $completeAutomatically;
35
    }
36
}