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.

DeliveryNoteContainer.php 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace common\logic\Document\DeliveryNote\Wrapper;
  3. use common\logic\AbstractContainer;
  4. use common\logic\Document\DeliveryNote\Model\DeliveryNote;
  5. use common\logic\Document\DeliveryNote\Repository\DeliveryNoteRepository;
  6. use common\logic\Document\DeliveryNote\Service\DeliveryNoteBuilder;
  7. use common\logic\Document\DeliveryNote\Service\DeliveryNoteSolver;
  8. class DeliveryNoteContainer extends AbstractContainer
  9. {
  10. public function getEntityFqcn(): string
  11. {
  12. return DeliveryNote::class;
  13. }
  14. public function getServices(): array
  15. {
  16. return [
  17. DeliveryNoteSolver::class,
  18. DeliveryNoteRepository::class,
  19. DeliveryNoteBuilder::class,
  20. ];
  21. }
  22. public function getSolver(): DeliveryNoteSolver
  23. {
  24. return DeliveryNoteSolver::getInstance();
  25. }
  26. public function getRepository(): DeliveryNoteRepository
  27. {
  28. return DeliveryNoteRepository::getInstance();
  29. }
  30. public function getBuilder(): DeliveryNoteBuilder
  31. {
  32. return DeliveryNoteBuilder::getInstance();
  33. }
  34. }