Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

InvoiceModule.php 808B

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