EmailFooterContainer   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 18
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A getHtml() 0 8 2
1
<?php
2
3
/**
4
 *  ____  _     _                       _ _
5
 * |  _ \| |__ | |_ ___ _ __ ___   __ _(_) |
6
 * | |_) | '_ \| __/ _ \ '_ ` _ \ / _` | | |
7
 * |  __/| | | | ||  __/ | | | | | (_| | | |
8
 * |_|   |_| |_|\__\___|_| |_| |_|\__,_|_|_|
9
 *
10
 * This file is part of Kristuff\Phtemail.
11
 *
12
 * (c) Kristuff <[email protected]>
13
 *
14
 * For the full copyright and license information, please view the LICENSE
15
 * file that was distributed with this source code.
16
 *
17
 * @version    0.2.0
18
 * @copyright  2017-2020 Kristuff
19
 */
20
21
namespace Kristuff\Phtemail;
22
23
/** 
24
 * Class EmailFooterContainer
25
 * The top bottom container element inside the HtmlEmailBuilder
26
 */
27
class EmailFooterContainer extends \Kristuff\Phtemail\Core\HtmlBuilderContainer
28
{
29
    /** 
30
     * Gets the HTML 
31
     *
32
     * @access public
33
     * @param string    $indent
34
     * 
35
     * @return string   The html string content
36
     */
37
    public function getHtml(string $indent)
38
    {
39
        // make sure a color is set
40
        if (empty($this->styles['color'])){
41
            $this->setColor($this->getBuilder()->backsideColor());
42
        }
43
        
44
        return $this->getHtmlStructure($indent, 'EMAIL FOOTER', 'emailFooter', $this->getBuilder()->backsideBackgroundColor());
45
    }
46
}