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.

42 lines
1.1KB

  1. <?php
  2. namespace common\logic\Product\ProductPrice\Wrapper;
  3. use common\logic\AbstractContainer;
  4. use common\logic\Product\ProductPrice\Repository\ProductPriceRepository;
  5. use common\logic\Product\ProductPrice\Service\ProductPriceBuilder;
  6. use common\logic\Product\ProductPrice\Service\ProductPriceDefinition;
  7. use common\logic\Product\ProductPrice\Service\ProductPriceSolver;
  8. class ProductPriceContainer extends AbstractContainer
  9. {
  10. public function getServices(): array
  11. {
  12. return [
  13. ProductPriceDefinition::class,
  14. ProductPriceSolver::class,
  15. ProductPriceBuilder::class,
  16. ProductPriceRepository::class
  17. ];
  18. }
  19. public function getDefinition(): ProductPriceDefinition
  20. {
  21. return ProductPriceDefinition::getInstance();
  22. }
  23. public function getBuilder(): ProductPriceBuilder
  24. {
  25. return ProductPriceBuilder::getInstance();
  26. }
  27. public function getSolver(): ProductPriceSolver
  28. {
  29. return ProductPriceSolver::getInstance();
  30. }
  31. public function getRepository(): ProductPriceRepository
  32. {
  33. return ProductPriceRepository::getInstance();
  34. }
  35. }