您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

27 行
588B

  1. <?php
  2. namespace domain\Communication\Email;
  3. use domain\_\AbstractBuilder;
  4. class EmailBuilder extends AbstractBuilder
  5. {
  6. public function instanciateEmail(
  7. string $fromName,
  8. string $fromEmail,
  9. string $subject,
  10. string $htmlContent,
  11. string $textContent
  12. ): Email
  13. {
  14. $email = new Email();
  15. $email->setFromName($fromName);
  16. $email->setFromEmail($fromEmail);
  17. $email->setSubject($subject);
  18. $email->setHtmlContent($htmlContent);
  19. $email->setTextContent($textContent);
  20. return $email;
  21. }
  22. }