You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 line
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. }