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.

ReminderContainer.php 1.1KB

2 jaren geleden
2 jaren geleden
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace Lc\SovBundle\Container\Reminder;
  3. use App\Entity\Reminder\Reminder;
  4. use Lc\SovBundle\Factory\Reminder\ReminderFactory;
  5. use Lc\SovBundle\Repository\Reminder\ReminderRepositoryQuery;
  6. use Lc\SovBundle\Repository\Reminder\ReminderStore;
  7. class ReminderContainer
  8. {
  9. protected ReminderFactory $factory;
  10. protected ReminderRepositoryQuery $repositoryQuery;
  11. protected ReminderStore $store;
  12. public function __construct(
  13. ReminderFactory $factory,
  14. ReminderRepositoryQuery $repositoryQuery,
  15. ReminderStore $store
  16. ) {
  17. $this->factory = $factory;
  18. $this->repositoryQuery = $repositoryQuery;
  19. $this->store = $store;
  20. }
  21. public static function getEntityFqcn()
  22. {
  23. return Reminder::class;
  24. }
  25. public function getFactory(): ReminderFactory
  26. {
  27. return $this->factory;
  28. }
  29. public function getRepositoryQuery(): ReminderRepositoryQuery
  30. {
  31. return $this->repositoryQuery;
  32. }
  33. public function getStore(): ReminderStore
  34. {
  35. return $this->store;
  36. }
  37. }