Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

70 lines
1.4KB

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