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.

DeliveryNoteModule.php 1.3KB

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