AbstractBasicGenerator::getIndention()   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-20 
5
 */
6
7
namespace Net\Bazzline\Component\CodeGenerator;
8
9
/**
10
 * Class AbstractBasicGenerator
11
 * @package Net\Bazzline\Component\CodeGenerator
12
 */
13
abstract class AbstractBasicGenerator implements GeneratorInterface
14
{
15
    /** @var Indention */
16
    private $indention;
17
18
    /**
19
     * @return $this
20
     */
21
    public function __clone()
22
    {
23
        $this->clear();
24
    }
25
26
    /**
27
     * @return string
28
     */
29
    final public function __toString()
30
    {
31
        return $this->generate();
32
    }
33
34
    /**
35
     * @return Indention
36
     */
37
    final public function getIndention()
38
    {
39
        return $this->indention;
40
    }
41
42
    /**
43
     * @param Indention $indention
44
     * @return $this
45
     */
46
    public function setIndention(Indention $indention)
47
    {
48
        $this->indention = $indention;
49
50
        return $this;
51
    }
52
}