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.

48 line
1.3KB

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