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.

39 line
846B

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