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

37 行
760B

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