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.

PointSaleDistributionModule.php 1.2KB

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