Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

ProductPriceContainer.php 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. }