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.

33 lines
926B

  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\Reminder;
  3. use App\Entity\Merchant\Merchant;
  4. use Lc\CaracoleBundle\Factory\MerchantFactoryTrait;
  5. use Lc\CaracoleBundle\Factory\SectionFactoryTrait;
  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 MerchantFactoryTrait;
  13. use SectionFactoryTrait;
  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. }