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.

38 lines
808B

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