Template   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A subject() 0 3 1
A html() 0 3 1
A text() 0 3 1
A __construct() 0 5 1
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