| Total Complexity | 7 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class EmailTemplate implements Stringable |
||
| 8 | { |
||
| 9 | public function __construct( |
||
| 10 | private string $name, |
||
| 11 | private string $providerName, |
||
| 12 | private string $username, |
||
| 13 | private string $address, |
||
| 14 | private ?string $subjectKeyword = null |
||
| 15 | ) {} |
||
| 16 | |||
| 17 | public function getName(): string |
||
| 18 | { |
||
| 19 | return $this->name; |
||
| 20 | } |
||
| 21 | |||
| 22 | public function getProviderName(): string |
||
| 23 | { |
||
| 24 | return $this->providerName; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function getAddress(): string |
||
| 28 | { |
||
| 29 | return $this->address; |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getSubjectKeyword(): ?string |
||
| 33 | { |
||
| 34 | return $this->subjectKeyword; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getFrom(): string |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritDoc} |
||
| 44 | */ |
||
| 45 | public function __toString(): string |
||
| 48 | } |
||
| 49 | } |
||
| 50 |