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.

DistributionFactory.php 570B

пре 3 година
пре 3 година
пре 3 година
1234567891011121314151617181920212223
  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. }