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.

36 lines
740B

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