Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

QuotationModule.php 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. }