| Total Complexity | 8 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class EmailMessage extends Email |
||
| 9 | { |
||
| 10 | private array $viewData= []; |
||
| 11 | private string $template = ''; |
||
| 12 | |||
| 13 | public function getViewData(): array |
||
| 14 | { |
||
| 15 | return $this->viewData; |
||
| 16 | } |
||
| 17 | |||
| 18 | 1 | public function setViewData(array $viewData): void |
|
| 19 | { |
||
| 20 | 1 | $this->viewData = $viewData; |
|
| 21 | } |
||
| 22 | |||
| 23 | public function getTemplate(): string |
||
| 24 | { |
||
| 25 | return $this->template; |
||
| 26 | 1 | } |
|
| 27 | |||
| 28 | 1 | public function setTemplate(string $template): void |
|
| 29 | { |
||
| 30 | $this->template = $template; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function setFrom(string $email, string $name = ''): void |
||
| 34 | 1 | { |
|
| 35 | $from = new Address($email, $name); |
||
| 36 | 1 | $this->from($from); |
|
| 37 | } |
||
| 38 | |||
| 39 | public function setTo(string $email, ?string $name = null): void |
||
| 43 | } |
||
| 44 | 1 | ||
| 45 | public function setSubject(string $subject): void |
||
| 48 | } |
||
| 49 | } |
||
| 50 |