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.

47 lines
1.2KB

  1. <?php
  2. namespace common\logic\Document\Quotation\Module;
  3. use common\logic\Document\Document\Module\DocumentModule;
  4. use common\logic\Document\Document\Service\DocumentSolver;
  5. use common\logic\Document\Quotation\Repository\QuotationRepository;
  6. use common\logic\Document\Quotation\Service\QuotationBuilder;
  7. use common\logic\Document\Quotation\Service\QuotationDefinition;
  8. /**
  9. * @mixin QuotationDefinition
  10. * @mixin QuotationRepository
  11. * @mixin QuotationBuilder
  12. */
  13. class QuotationModule extends DocumentModule
  14. {
  15. public function getServices(): array
  16. {
  17. return [
  18. QuotationDefinition::class,
  19. DocumentSolver::class,
  20. QuotationRepository::class,
  21. QuotationBuilder::class,
  22. ];
  23. }
  24. public function getDefinition(): QuotationDefinition
  25. {
  26. return QuotationDefinition::getInstance();
  27. }
  28. public function getSolver(): DocumentSolver
  29. {
  30. return DocumentSolver::getInstance();
  31. }
  32. public function getRepository(): QuotationRepository
  33. {
  34. return QuotationRepository::getInstance();
  35. }
  36. public function getBuilder(): QuotationBuilder
  37. {
  38. return QuotationBuilder::getInstance();
  39. }
  40. }