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.

RotatingBuilder.php 442B

12345678910111213141516171819
  1. <?php
  2. namespace domain\Product\Rotating;
  3. use domain\_\AbstractBuilder;
  4. use domain\_\StatusInterface;
  5. use domain\Producer\Producer\Producer;
  6. class RotatingBuilder extends AbstractBuilder
  7. {
  8. public function instanciateRotating(Producer $producer): Rotating
  9. {
  10. $rotating = new Rotating();
  11. $rotating->setProducer($producer);
  12. $rotating->setStatus(StatusInterface::STATUS_ONLINE);
  13. return $rotating;
  14. }
  15. }