|
1234567891011121314151617181920212223 |
- <?php
-
- namespace Lc\CaracoleBundle\Factory\Distribution;
-
- use App\Entity\Distribution\Distribution;
- use Lc\CaracoleBundle\Model\Section\SectionInterface;
- use Lc\SovBundle\Factory\AbstractFactory;
-
- class DistributionFactory extends AbstractFactory
- {
-
- public function create(int $cycleNumber, int $year, SectionInterface $section):Distribution
- {
- $distribution = new Distribution();
-
- $distribution->setSection($section);
- $distribution->setCycleNumber($cycleNumber);
- $distribution->setYear($year);
-
- return $distribution;
- }
-
- }
|