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.

OrderProductContainer.php 1.5KB

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