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.1KB

  1. <?php
  2. namespace common\logic\Product\ProductPointSale\Module;
  3. use common\logic\AbstractModule;
  4. use common\logic\DefinitionInterface;
  5. use common\logic\Product\ProductPointSale\Repository\ProductPointSaleRepository;
  6. use common\logic\Product\ProductPointSale\Service\ProductPointSaleBuilder;
  7. use common\logic\Product\ProductPointSale\Service\ProductPointSaleDefinition;
  8. /**
  9. * @mixin ProductPointSaleDefinition
  10. * @mixin ProductPointSaleRepository
  11. * @mixin ProductPointSaleBuilder
  12. */
  13. class ProductPointSaleModule extends AbstractModule
  14. {
  15. public function getServices(): array
  16. {
  17. return [
  18. ProductPointSaleDefinition::class,
  19. ProductPointSaleRepository::class,
  20. ProductPointSaleBuilder::class,
  21. ];
  22. }
  23. public function getDefinition(): DefinitionInterface
  24. {
  25. return ProductPointSaleDefinition::getInstance();
  26. }
  27. public function getRepository(): ProductPointSaleRepository
  28. {
  29. return ProductPointSaleRepository::getInstance();
  30. }
  31. public function getBuilder(): ProductPointSaleBuilder
  32. {
  33. return ProductPointSaleBuilder::getInstance();
  34. }
  35. }