You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 line
1.7KB

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