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.

40 line
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. ProductPriceRepository::class
  19. ];
  20. }
  21. public function getBuilder(): ProductPriceBuilder
  22. {
  23. return ProductPriceBuilder::getInstance();
  24. }
  25. public function getSolver(): ProductPriceSolver
  26. {
  27. return ProductPriceSolver::getInstance();
  28. }
  29. public function getRepository(): ProductPriceRepository
  30. {
  31. return ProductPriceRepository::getInstance();
  32. }
  33. }