Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

MerchantSettingFactory.php 803B

pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\Setting;
  3. use App\Entity\Setting\MerchantSetting;
  4. use Lc\CaracoleBundle\Factory\MerchantFactoryTrait;
  5. use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
  6. use Lc\SovBundle\Factory\AbstractFactory;
  7. use Lc\SovBundle\Model\File\FileInterface;
  8. class MerchantSettingFactory extends AbstractFactory
  9. {
  10. public function create(MerchantInterface $merchant, string $name, string $text = null, \DateTime $date = null, FileInterface $file = null)
  11. {
  12. $merchantSetting = new MerchantSetting();
  13. $merchantSetting->setMerchant($merchant);
  14. $merchantSetting->setName($name);
  15. $merchantSetting->setText($text);
  16. $merchantSetting->setDate($date);
  17. $merchantSetting->setFile($file);
  18. return $merchantSetting;
  19. }
  20. }