Template::html()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Damax\Common\Domain\Email;
6
7
final class Template
8
{
9
    private $subject;
10
    private $text;
11
    private $html;
12
13
    public function __construct(string $subject, string $text, string $html = null)
14
    {
15
        $this->subject = $subject;
16
        $this->text = $text;
17
        $this->html = $html;
18
    }
19
20
    public function subject(): string
21
    {
22
        return $this->subject;
23
    }
24
25
    public function text(): string
26
    {
27
        return $this->text;
28
    }
29
30
    public function html(): ?string
31
    {
32
        return $this->html;
33
    }
34
}
35