- <?php
-
- namespace domain\Communication\Email;
-
- class Email
- {
- const TYPE_NEWSLETTER = 'newsletter';
- const TYPE_ORDER_TAKING = 'newsletter-order-taking';
-
- protected string $fromName;
- protected string $fromEmail;
- protected string $subject;
- protected string $htmlContent;
- protected string $textContent;
-
- public function getFromName(): string
- {
- return $this->fromName;
- }
-
- public function setFromName(string $fromName): self
- {
- $this->fromName = $fromName;
- return $this;
- }
-
- public function getFromEmail(): string
- {
- return $this->fromEmail;
- }
-
- public function setFromEmail(string $fromEmail): self
- {
- $this->fromEmail = $fromEmail;
- return $this;
- }
-
- public function getSubject(): string
- {
- return $this->subject;
- }
-
- public function setSubject(string $subject): self
- {
- $this->subject = $subject;
- return $this;
- }
-
- public function getHtmlContent(): string
- {
- return $this->htmlContent;
- }
-
- public function setHtmlContent(string $htmlContent): self
- {
- $this->htmlContent = $htmlContent;
- return $this;
- }
-
- public function getTextContent(): string
- {
- return $this->textContent;
- }
-
- public function setTextContent(string $textContent): self
- {
- $this->textContent = $textContent;
- return $this;
- }
- }
|