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.

38 lines
840B

  1. <?php
  2. namespace common\logic\Order\ProductOrder;
  3. use common\logic\ContainerInterface;
  4. use common\logic\PointSale\PointSale\ProductOrderRepository;
  5. class ProductOrderContainer implements ContainerInterface
  6. {
  7. public function getEntityFqcn(): string
  8. {
  9. return ProductOrder::class;
  10. }
  11. public function getServices(): array
  12. {
  13. return [
  14. ProductOrderSolver::class,
  15. ProductOrderRepository::class,
  16. ProductOrderBuilder::class,
  17. ];
  18. }
  19. public function getSolver(): ProductOrderSolver
  20. {
  21. return new ProductOrderSolver();
  22. }
  23. public function getRepository(): ProductOrderRepository
  24. {
  25. return new ProductOrderRepository();
  26. }
  27. public function getBuilder(): ProductOrderBuilder
  28. {
  29. return new ProductOrderBuilder();
  30. }
  31. }