TemplateTrait::setTemplatePath()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace HelloWordPl\SimpleEntityGeneratorBundle\Lib\Traits;
4
5
use JMS\Serializer\Annotation\Type;
6
7
/**
8
 * @author Sławomir Kania <[email protected]>
9
 */
10
trait TemplateTrait
11
{
12
13
    /**
14
     * @var string
15
     */
16
    private $template;
17
18
    /**
19
     * @Type("string")
20
     * @var string
21
     */
22
    private $templatePath;
23
24
    /**
25
     * @param string $template
26
     * @return this
27
     */
28
    public function setTemplate($template)
29
    {
30
        $this->template = $template;
31
        return $this;
32
    }
33
34
    /**
35
     * Return common element template
36
     *
37
     * @return string
38
     */
39
    public function getTemplate()
40
    {
41
        return $this->template;
42
    }
43
44
    /**
45
     * @return string
46
     */
47
    public function getTemplatePath()
48
    {
49
        return $this->templatePath;
50
    }
51
52
    /**
53
     * @param string $templatePath
54
     * @return string
55
     */
56
    public function setTemplatePath($templatePath)
57
    {
58
        $this->templatePath = $templatePath;
59
        return $this;
60
    }
61
}
62