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.

SectionSettingFactory.php 855B

3 年之前
3 年之前
3 年之前
3 年之前
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. }