No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

57 líneas
1.5KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Container\Order;
  3. use Lc\CaracoleBundle\Builder\Order\OrderProductBuilder;
  4. use Lc\CaracoleBundle\Factory\Order\OrderProductFactory;
  5. use Lc\CaracoleBundle\Repository\Order\OrderProductRepositoryQuery;
  6. use Lc\CaracoleBundle\Repository\Order\OrderProductStore;
  7. use Lc\CaracoleBundle\Solver\Order\OrderProductSolver;
  8. class OrderProductContainer
  9. {
  10. protected OrderProductFactory $factory;
  11. protected OrderProductSolver $solver;
  12. protected OrderProductBuilder $builder;
  13. protected OrderProductRepositoryQuery $repositoryQuery;
  14. protected OrderProductStore $store;
  15. public function __construct(
  16. OrderProductFactory $factory,
  17. OrderProductSolver $solver,
  18. OrderProductBuilder $builder,
  19. OrderProductRepositoryQuery $repositoryQuery,
  20. OrderProductStore $store
  21. ) {
  22. $this->factory = $factory;
  23. $this->solver = $solver;
  24. $this->builder = $builder;
  25. $this->repositoryQuery = $repositoryQuery;
  26. $this->store = $store;
  27. }
  28. public function getFactory(): OrderProductFactory
  29. {
  30. return $this->factory;
  31. }
  32. public function getSolver(): OrderProductSolver
  33. {
  34. return $this->solver;
  35. }
  36. public function getBuilder(): OrderProductBuilder
  37. {
  38. return $this->builder;
  39. }
  40. public function getRepositoryQuery(): OrderProductRepositoryQuery
  41. {
  42. return $this->repositoryQuery;
  43. }
  44. public function getStore(): OrderProductStore
  45. {
  46. return $this->store;
  47. }
  48. }