HTMLMail::setFormat()   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 0
crap 1
1
<?php
2
/**
3
 * BrightNucleus ChainMail Component.
4
 *
5
 * @package   BrightNucleus/ChainMail
6
 * @author    Alain Schlesser <[email protected]>
7
 * @license   MIT
8
 * @link      http://www.brightnucleus.com/
9
 * @copyright 2016 Alain Schlesser, Bright Nucleus
10
 */
11
12
namespace BrightNucleus\ChainMail\Mail;
13
14
/**
15
 * Class HTMLMail.
16
 *
17
 * @since   1.0.0
18
 *
19
 * @package BrightNucleus\ChainMail
20
 * @author  Alain Schlesser <[email protected]>
21
 */
22
class HTMLMail extends AbstractMail
23
{
24
25
    /**
26
     * Set the format of the mail.
27
     *
28
     * @since 1.0.0
29
     */
30 8
    protected function setFormat()
31
    {
32 8
        $this->format = 'html';
33 8
    }
34
35
    /**
36
     * Set the context of the renderer.
37
     *
38
     * @since 1.0.0
39
     *
40
     * @param array $context Context to set/modify.
41
     *
42
     * @return array Updated context.
43
     */
44 4
    protected function setContext(array $context)
45
    {
46 4
        return $context;
47
    }
48
}
49