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.

41 lines
1.0KB

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