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.
|
- <?php
-
- namespace domain\Communication\AutomaticEmail;
-
- use domain\_\AbstractBuilder;
- use domain\_\StatusInterface;
- use domain\Producer\Producer\Producer;
-
- class AutomaticEmailBuilder extends AbstractBuilder
- {
- public function instanciateAutomaticEmail(Producer $producer): AutomaticEmail
- {
- $automaticEmail = new AutomaticEmail();
- $automaticEmail->setProducer($producer);
- $automaticEmail->setDelayBeforeDistribution(2);
- $automaticEmail->setStatus(StatusInterface::STATUS_ONLINE);
- return $automaticEmail;
- }
- }
|