您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

42 行
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. }