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.

67 lines
2.0KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Container\Order;
  3. use Lc\CaracoleBundle\Builder\Order\OrderShopBuilder;
  4. use Lc\CaracoleBundle\Checker\OrderChecker;
  5. use Lc\CaracoleBundle\Factory\Order\OrderShopFactory;
  6. use Lc\CaracoleBundle\Repository\Order\OrderShopRepositoryQuery;
  7. use Lc\CaracoleBundle\Repository\Order\OrderShopStore;
  8. use Lc\CaracoleBundle\Solver\Order\OrderShopSolver;
  9. class OrderShopContainer
  10. {
  11. protected OrderShopFactory $orderShopFactory;
  12. protected OrderShopSolver $orderShopSolver;
  13. protected OrderChecker $orderChecker;
  14. protected OrderShopRepositoryQuery $orderShopRepositoryQuery;
  15. protected OrderShopStore $orderShopStore;
  16. protected OrderShopBuilder $orderShopBuilder;
  17. public function __construct(
  18. OrderShopFactory $orderShopFactory,
  19. OrderShopSolver $orderShopSolver,
  20. OrderChecker $orderChecker,
  21. OrderShopRepositoryQuery $orderShopRepositoryQuery,
  22. OrderShopStore $orderShopStore,
  23. OrderShopBuilder $orderShopBuilder
  24. ) {
  25. $this->orderShopFactory = $orderShopFactory;
  26. $this->orderShopSolver = $orderShopSolver;
  27. $this->orderChecker = $orderChecker;
  28. $this->orderShopRepositoryQuery = $orderShopRepositoryQuery;
  29. $this->orderShopStore = $orderShopStore;
  30. $this->orderShopBuilder = $orderShopBuilder;
  31. }
  32. public function getFactory(): OrderShopFactory
  33. {
  34. return $this->orderShopFactory;
  35. }
  36. public function getSolver(): OrderShopSolver
  37. {
  38. return $this->orderShopSolver;
  39. }
  40. public function getChecker(): OrderChecker
  41. {
  42. return $this->orderChecker;
  43. }
  44. public function getRepositoryQuery(): OrderShopRepositoryQuery
  45. {
  46. return $this->orderShopRepositoryQuery;
  47. }
  48. public function getStore(): OrderShopStore
  49. {
  50. return $this->orderShopStore;
  51. }
  52. public function getBuilder(): OrderShopBuilder
  53. {
  54. return $this->orderShopBuilder;
  55. }
  56. }