選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

41 行
985B

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