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

24 行
570B

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