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

19 行
557B

  1. <?php
  2. namespace domain\Communication\AutomaticEmail;
  3. use domain\_\AbstractBuilder;
  4. use domain\_\StatusInterface;
  5. use domain\Producer\Producer\Producer;
  6. class AutomaticEmailBuilder extends AbstractBuilder
  7. {
  8. public function instanciateAutomaticEmail(Producer $producer): AutomaticEmail
  9. {
  10. $automaticEmail = new AutomaticEmail();
  11. $automaticEmail->setProducer($producer);
  12. $automaticEmail->setDelayBeforeDistribution(2);
  13. $automaticEmail->setStatus(StatusInterface::STATUS_ONLINE);
  14. return $automaticEmail;
  15. }
  16. }