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.

34 lines
980B

  1. <?php
  2. namespace common\logic\Distribution\ProductDistribution\Wrapper;
  3. use common\logic\AbstractContainer;
  4. use common\logic\Distribution\ProductDistribution\Model\ProductDistribution;
  5. use common\logic\Distribution\ProductDistribution\Repository\ProductDistributionRepository;
  6. use common\logic\Distribution\ProductDistribution\Service\ProductDistributionBuilder;
  7. class ProductDistributionContainer extends AbstractContainer
  8. {
  9. public function getEntityFqcn(): string
  10. {
  11. return ProductDistribution::class;
  12. }
  13. public function getServices(): array
  14. {
  15. return [
  16. ProductDistributionRepository::class,
  17. ProductDistributionBuilder::class,
  18. ];
  19. }
  20. public function getRepository(): ProductDistributionRepository
  21. {
  22. return ProductDistributionRepository::getInstance();
  23. }
  24. public function getBuilder(): ProductDistributionBuilder
  25. {
  26. return ProductDistributionBuilder::getInstance();
  27. }
  28. }