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.

42 lines
1.1KB

  1. <?php
  2. namespace common\logic\Document\DeliveryNote\Wrapper;
  3. use common\logic\AbstractContainer;
  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. class DeliveryNoteContainer extends AbstractContainer
  9. {
  10. public function getServices(): array
  11. {
  12. return [
  13. DeliveryNoteDefinition::class,
  14. DeliveryNoteSolver::class,
  15. DeliveryNoteRepository::class,
  16. DeliveryNoteBuilder::class,
  17. ];
  18. }
  19. public function getDefinition(): DeliveryNoteDefinition
  20. {
  21. return DeliveryNoteDefinition::getInstance();
  22. }
  23. public function getSolver(): DeliveryNoteSolver
  24. {
  25. return DeliveryNoteSolver::getInstance();
  26. }
  27. public function getRepository(): DeliveryNoteRepository
  28. {
  29. return DeliveryNoteRepository::getInstance();
  30. }
  31. public function getBuilder(): DeliveryNoteBuilder
  32. {
  33. return DeliveryNoteBuilder::getInstance();
  34. }
  35. }