Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

OrderReductionCartContainer.php 1.3KB

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