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.

44 satır
1011B

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