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.

18 line
501B

  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->setStatus(StatusInterface::STATUS_ONLINE);
  13. return $automaticEmail;
  14. }
  15. }