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.

42 satır
1.1KB

  1. <?php
  2. namespace common\logic\Document\Quotation\Wrapper;
  3. use common\logic\AbstractContainer;
  4. use common\logic\Document\Document\Service\DocumentSolver;
  5. use common\logic\Document\Quotation\Repository\QuotationRepository;
  6. use common\logic\Document\Quotation\Service\QuotationBuilder;
  7. use common\logic\Document\Quotation\Service\QuotationDefinition;
  8. class QuotationContainer extends AbstractContainer
  9. {
  10. public function getServices(): array
  11. {
  12. return [
  13. QuotationDefinition::class,
  14. DocumentSolver::class,
  15. QuotationRepository::class,
  16. QuotationBuilder::class,
  17. ];
  18. }
  19. public function getDefinition(): QuotationDefinition
  20. {
  21. return QuotationDefinition::getInstance();
  22. }
  23. public function getSolver(): DocumentSolver
  24. {
  25. return DocumentSolver::getInstance();
  26. }
  27. public function getRepository(): QuotationRepository
  28. {
  29. return QuotationRepository::getInstance();
  30. }
  31. public function getBuilder(): QuotationBuilder
  32. {
  33. return QuotationBuilder::getInstance();
  34. }
  35. }