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.

27 lines
793B

  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\Setting;
  3. use App\Entity\Setting\SectionSetting;
  4. use Lc\CaracoleBundle\Factory\SectionFactoryTrait;
  5. use Lc\CaracoleBundle\Model\Section\SectionInterface;
  6. use Lc\SovBundle\Factory\AbstractFactory;
  7. use Lc\SovBundle\Model\File\FileInterface;
  8. class SectionSettingFactory extends AbstractFactory
  9. {
  10. public function create(SectionInterface $section, string $name, string $text = null, \DateTime $date = null, FileInterface $file = null)
  11. {
  12. $merchantSetting = new SectionSetting();
  13. $merchantSetting->setSection($section);
  14. $merchantSetting->setName($name);
  15. $merchantSetting->setText($text);
  16. $merchantSetting->setDate($date);
  17. $merchantSetting->setFile($file);
  18. return $merchantSetting;
  19. }
  20. }