SimpleHtml::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * MtMail - e-mail module for Zend Framework
4
 *
5
 * @link      http://github.com/mtymek/MtMail
6
 * @copyright Copyright (c) 2013-2017 Mateusz Tymek
7
 * @license   BSD 2-Clause
8
 */
9
10
namespace MtMail\Template;
11
12
/**
13
 * Default template used when developer wants to specify template file without
14
 * implementing TemplateInterface
15
 */
16
class SimpleHtml implements HtmlTemplateInterface
17
{
18
    /**
19
     * @var string
20
     */
21
    protected $htmlTemplateName;
22
23
    /**
24
     * Class constructor
25
     * @param string $htmlTemplateName
26
     */
27 2
    public function __construct($htmlTemplateName)
28
    {
29 2
        $this->htmlTemplateName = $htmlTemplateName;
30 2
    }
31
32
    /**
33
     * @return string
34
     */
35 1
    public function getHtmlTemplateName()
36
    {
37 1
        return $this->htmlTemplateName;
38
    }
39
}
40