Paragraph   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 16
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
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\HtmlElements;
22
23
/**
24
 * Represents a break line, ie <br> 
25
 */
26
class Paragraph extends \Kristuff\Phtemail\Core\MixedElement
27
{
28
    /**
29
     * Constructor
30
     * 
31
     * @access public
32
     * @param string    $content        The element content
33
     * @param  array    $styles         The inline styles
34
     */
35
    public function __construct(string $content = '', array $styles = [])
36
    {
37
        parent::__construct('p', $content, $styles);
38
        $this->mandatoryStyles = array(
39
            'color',   
40
            'font-family',
41
            'font-size',
42
           // 'font-weight', todo
43
           // 'line-height',
44
        );
45
    }
46
47
}