Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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