Test Failed
Push — 5.0 ( aa12f8...5bd2c0 )
by David
40s
created

SwiftTwigMailTemplate::setBccAddresses()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 1
cts 1
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
namespace TheCodingMachine\Mail\Template;
4
5
class SwiftTwigMailTemplate extends AbstractSwiftTwigMailTemplate
6
{
7
    /**
8
     * @var string
9
     */
10
    private $twigPath;
11
12
    /**
13
     * SwiftTwigMailTemplate constructor.
14
     * @param \Twig_Environment $twig_Environment
15
     * @param string $twigPath
16
     */
17
    public function __construct(\Twig_Environment $twig_Environment, string $twigPath)
18
    {
19
        parent::__construct($twig_Environment);
20
        $this->twigPath = $twigPath;
21
    }
22
23
    /**
24
     * @return \Twig_Template|\Twig_TemplateInterface
25
     */
26
    public function getTemplate()
27
    {
28
        return $this->twigEnvironment->loadTemplate($this->twigPath);
29
    }
30
}