You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
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. }