您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

24 行
630B

  1. <?php
  2. namespace domain\Product\Rotating;
  3. use domain\_\AbstractManager;
  4. use domain\Producer\Producer\Producer;
  5. class RotatingManager extends AbstractManager
  6. {
  7. protected RotatingBuilder $rotatingBuilder;
  8. public function loadDependencies(): void
  9. {
  10. $this->rotatingBuilder = $this->loadService(RotatingBuilder::class);
  11. }
  12. public function createRotating(Producer $producer, string $name, int $day): Rotating
  13. {
  14. $rotating = $this->rotatingBuilder->instanciateRotating($producer, $name, $day);
  15. $rotating->setName($name);
  16. $rotating->setDay($day);
  17. return $rotating;
  18. }
  19. }