選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

UserPointSaleContainer.php 1.1KB

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