Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

49 lines
1.5KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Container\Order;
  3. use Lc\CaracoleBundle\Factory\Order\OrderProductReductionCatalogFactory;
  4. use Lc\CaracoleBundle\Repository\Order\OrderProductReductionCatalogRepositoryQuery;
  5. use Lc\CaracoleBundle\Repository\Order\OrderProductReductionCatalogStore;
  6. use Lc\CaracoleBundle\Solver\Order\OrderProductReductionCatalogSolver;
  7. class OrderProductReductionCatalogContainer
  8. {
  9. protected OrderProductReductionCatalogFactory $factory;
  10. protected OrderProductReductionCatalogSolver $solver;
  11. protected OrderProductReductionCatalogRepositoryQuery $repositoryQuery;
  12. protected OrderProductReductionCatalogStore $store;
  13. public function __construct(
  14. OrderProductReductionCatalogFactory $factory,
  15. OrderProductReductionCatalogSolver $solver,
  16. OrderProductReductionCatalogRepositoryQuery $repositoryQuery,
  17. OrderProductReductionCatalogStore $store
  18. ) {
  19. $this->factory = $factory;
  20. $this->solver = $solver;
  21. $this->repositoryQuery = $repositoryQuery;
  22. $this->store = $store;
  23. }
  24. public function getFactory(): OrderProductReductionCatalogFactory
  25. {
  26. return $this->factory;
  27. }
  28. public function getSolver(): OrderProductReductionCatalogSolver
  29. {
  30. return $this->solver;
  31. }
  32. public function getRepositoryQuery(): OrderProductReductionCatalogRepositoryQuery
  33. {
  34. return $this->repositoryQuery;
  35. }
  36. public function getStore(): OrderProductReductionCatalogStore
  37. {
  38. return $this->store;
  39. }
  40. }