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.

47 lines
1.2KB

  1. <?php
  2. namespace domain\Product\ProductPrice\Module;
  3. use domain\Product\ProductPrice\Repository\ProductPriceRepository;
  4. use domain\Product\ProductPrice\Service\ProductPriceBuilder;
  5. use domain\Product\ProductPrice\Service\ProductPriceDefinition;
  6. use domain\Product\ProductPrice\Service\ProductPriceSolver;
  7. use domain\_\AbstractModule;
  8. /**
  9. * @mixin ProductPriceDefinition
  10. * @mixin ProductPriceRepository
  11. * @mixin ProductPriceBuilder
  12. */
  13. class ProductPriceModule extends AbstractModule
  14. {
  15. public function getServices(): array
  16. {
  17. return [
  18. ProductPriceDefinition::class,
  19. ProductPriceSolver::class,
  20. ProductPriceBuilder::class,
  21. ProductPriceRepository::class
  22. ];
  23. }
  24. public function getDefinition(): ProductPriceDefinition
  25. {
  26. return ProductPriceDefinition::getInstance();
  27. }
  28. public function getBuilder(): ProductPriceBuilder
  29. {
  30. return ProductPriceBuilder::getInstance();
  31. }
  32. public function getSolver(): ProductPriceSolver
  33. {
  34. return ProductPriceSolver::getInstance();
  35. }
  36. public function getRepository(): ProductPriceRepository
  37. {
  38. return ProductPriceRepository::getInstance();
  39. }
  40. }