Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

49 lines
1.3KB

  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. }