Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

SectionSettingFactory.php 855B

3 år sedan
3 år sedan
3 år sedan
3 år sedan
12345678910111213141516171819202122232425262728293031
  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. }