| Total Complexity | 4 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 |
||
| 23 | } |
||
| 24 | |||
| 25 | public function text(): string |
||
| 26 | { |
||
| 27 | return $this->text; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function html(): ?string |
||
| 33 | } |
||
| 34 | } |
||
| 35 |