No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

InvoiceContainer.php 985B

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