TemplateAwareTrait::getTemplateDriver()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Ps2alerts\Api\Contract;
4
5
use Twig_Environment as Twig;
6
7
trait TemplateAwareTrait
8
{
9
    /**
10
     * @var \Twig_Environment
11
     */
12
    protected $twig;
13
14
    /**
15
     * Sets template Driver
16
     */
17
    public function setTemplateDriver(Twig $twig)
18
    {
19
        $this->twig = $twig;
20
    }
21
22
    /**
23
     * Gets the template driver
24
     */
25
    public function getTemplateDriver()
26
    {
27
        return $this->twig;
28
    }
29
}
30