Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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