Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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