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

42 行
1.0KB

  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\Repository\InvoiceRepository;
  6. use common\logic\Document\Invoice\Service\InvoiceBuilder;
  7. use common\logic\Document\Invoice\Service\InvoiceDefinition;
  8. class InvoiceContainer extends AbstractContainer
  9. {
  10. public function getServices(): array
  11. {
  12. return [
  13. InvoiceDefinition::class,
  14. DocumentSolver::class,
  15. InvoiceRepository::class,
  16. InvoiceBuilder::class,
  17. ];
  18. }
  19. public function getDefinition(): InvoiceDefinition
  20. {
  21. return InvoiceDefinition::getInstance();
  22. }
  23. public function getSolver(): DocumentSolver
  24. {
  25. return DocumentSolver::getInstance();
  26. }
  27. public function getRepository(): InvoiceRepository
  28. {
  29. return InvoiceRepository::getInstance();
  30. }
  31. public function getBuilder(): InvoiceBuilder
  32. {
  33. return InvoiceBuilder::getInstance();
  34. }
  35. }