您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ReminderFactory.php 926B

3 年前
3 年前
3 年前
3 年前
3 年前
3 年前
3 年前
3 年前
1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\Reminder;
  3. use App\Entity\Merchant\Merchant;
  4. use Lc\CaracoleBundle\Context\MerchantContextTrait;
  5. use Lc\CaracoleBundle\Context\SectionContextTrait;
  6. use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
  7. use Lc\CaracoleBundle\Model\Section\SectionInterface;
  8. use Lc\SovBundle\Factory\Reminder\ReminderFactory as SovReminderFactory;
  9. use Lc\SovBundle\Model\Reminder\ReminderInterface;
  10. class ReminderFactory extends SovReminderFactory
  11. {
  12. use MerchantContextTrait;
  13. use SectionContextTrait;
  14. public function create(
  15. string $crudAction = null,
  16. string $crudControllerFqcn = null,
  17. int $entityId = null
  18. ): ReminderInterface {
  19. $reminder = parent::create($crudAction, $crudControllerFqcn, $entityId);
  20. $reminder->setMerchant($this->merchant);
  21. $reminder->setSection($this->section);
  22. return $reminder;
  23. }
  24. }