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

25 行
664B

  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\Distribution;
  3. use Lc\CaracoleBundle\Container\Distribution\DistributionContainer;
  4. use Lc\CaracoleBundle\Model\Distribution\DistributionInterface;
  5. use Lc\SovBundle\Factory\AbstractFactory;
  6. class DistributionFactory extends AbstractFactory
  7. {
  8. public function create(int $cycleNumber, int $year, string $cycleType):DistributionInterface
  9. {
  10. $class = DistributionContainer::getEntityFqcn();
  11. $distribution = new $class;
  12. $distribution->setCycleNumber($cycleNumber);
  13. $distribution->setCycleType($cycleType);
  14. $distribution->setYear($year);
  15. return $distribution;
  16. }
  17. }