SimpleHtml   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 24
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getHtmlTemplateName() 0 4 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