Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

67 linhas
1.3KB

  1. <?php
  2. namespace domain\Communication\Email;
  3. class Email
  4. {
  5. protected string $fromName;
  6. protected string $fromEmail;
  7. protected string $subject;
  8. protected string $htmlContent;
  9. protected string $textContent;
  10. public function getFromName(): string
  11. {
  12. return $this->fromName;
  13. }
  14. public function setFromName(string $fromName): self
  15. {
  16. $this->fromName = $fromName;
  17. return $this;
  18. }
  19. public function getFromEmail(): string
  20. {
  21. return $this->fromEmail;
  22. }
  23. public function setFromEmail(string $fromEmail): self
  24. {
  25. $this->fromEmail = $fromEmail;
  26. return $this;
  27. }
  28. public function getSubject(): string
  29. {
  30. return $this->subject;
  31. }
  32. public function setSubject(string $subject): self
  33. {
  34. $this->subject = $subject;
  35. return $this;
  36. }
  37. public function getHtmlContent(): string
  38. {
  39. return $this->htmlContent;
  40. }
  41. public function setHtmlContent(string $htmlContent): self
  42. {
  43. $this->htmlContent = $htmlContent;
  44. return $this;
  45. }
  46. public function getTextContent(): string
  47. {
  48. return $this->textContent;
  49. }
  50. public function setTextContent(string $textContent): self
  51. {
  52. $this->textContent = $textContent;
  53. return $this;
  54. }
  55. }