|
- <?php
-
- namespace Lc\CaracoleBundle\Factory\Setting;
-
- use Lc\CaracoleBundle\Container\Setting\SectionSettingContainer;
- use Lc\CaracoleBundle\Model\Section\SectionInterface;
- use Lc\SovBundle\Factory\AbstractFactory;
- use Lc\SovBundle\Model\File\FileInterface;
-
- class SectionSettingFactory extends AbstractFactory
- {
-
- public function create(
- SectionInterface $section,
- string $name,
- string $text = null,
- \DateTime $date = null,
- FileInterface $file = null
- ) {
- $class = SectionSettingContainer::getEntityFqcn();
- $merchantSetting = new $class;
-
- $merchantSetting->setSection($section);
- $merchantSetting->setName($name);
- $merchantSetting->setText($text);
- $merchantSetting->setDate($date);
- $merchantSetting->setFile($file);
-
- return $merchantSetting;
- }
- }
|