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 satır
1.1KB

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