Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

25 rindas
642B

  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, SectionInterface $section):Distribution
  9. {
  10. $distribution = new Distribution();
  11. $distribution->setSection($section);
  12. $distribution->setCycleNumber($cycleNumber);
  13. $distribution->setCycleType($cycleType);
  14. $distribution->setYear($year);
  15. return $distribution;
  16. }
  17. }