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

ReminderFactory.php 661B

3 年前
3 年前
3 年前
3 年前
3 年前
12345678910111213141516171819202122232425
  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(
  9. string $crudAction = null,
  10. string $crudControllerFqcn = null,
  11. int $entityId = null
  12. ): ReminderInterface {
  13. $reminder = new Reminder();
  14. $reminder->setCrudAction($crudAction);
  15. $reminder->setCrudControllerFqcn($crudControllerFqcn);
  16. $reminder->setEntityId($entityId);
  17. return $reminder;
  18. }
  19. }