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.

26 rindas
730B

  1. <?php
  2. namespace Lc\SovBundle\Factory\Reminder;
  3. use Lc\SovBundle\Container\Reminder\ReminderContainer;
  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(
  9. string $crudAction = null,
  10. string $crudControllerFqcn = null,
  11. int $entityId = null
  12. ): ReminderInterface {
  13. $class = ReminderContainer::getEntityFqcn();
  14. $reminder = new $class;
  15. $reminder->setCrudAction($crudAction);
  16. $reminder->setCrudControllerFqcn($crudControllerFqcn);
  17. $reminder->setEntityId($entityId);
  18. return $reminder;
  19. }
  20. }