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.

5 meses atrás
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. }