Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

32 lines
855B

  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\Setting;
  3. use App\Entity\Setting\SectionSetting;
  4. use Lc\CaracoleBundle\Context\SectionContextTrait;
  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(
  11. SectionInterface $section,
  12. string $name,
  13. string $text = null,
  14. \DateTime $date = null,
  15. FileInterface $file = null
  16. ) {
  17. $merchantSetting = new SectionSetting();
  18. $merchantSetting->setSection($section);
  19. $merchantSetting->setName($name);
  20. $merchantSetting->setText($text);
  21. $merchantSetting->setDate($date);
  22. $merchantSetting->setFile($file);
  23. return $merchantSetting;
  24. }
  25. }