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.

23 line
623B

  1. <?php
  2. namespace Lc\SovBundle\Factory\Reminder;
  3. use App\Entity\Reminder\Reminder;
  4. use Lc\SovBundle\Factory\AbstractFactory;
  5. use Lc\SovBundle\Model\Reminder\ReminderInterface;
  6. class ReminderFactory extends AbstractFactory implements ReminderFactoryInterface
  7. {
  8. public function create(string $crudAction = null, string $crudControllerFqcn = null, int $entityId = null): ReminderInterface
  9. {
  10. $reminder = new Reminder();
  11. $reminder->setCrudAction($crudAction);
  12. $reminder->setCrudControllerFqcn($crudControllerFqcn);
  13. $reminder->setEntityId($entityId);
  14. return $reminder;
  15. }
  16. }