Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

187 lines
5.5KB

  1. <?php
  2. namespace common\components;
  3. use common\logic\Config\TaxRate\Module\TaxRateModule;
  4. use common\logic\Config\Unit\Module\UnitModule;
  5. use common\logic\Distribution\Distribution\Module\DistributionModule;
  6. use common\logic\Distribution\PointSaleDistribution\Module\PointSaleDistributionModule;
  7. use common\logic\Distribution\ProductDistribution\Module\ProductDistributionModule;
  8. use common\logic\Document\DeliveryNote\Module\DeliveryNoteModule;
  9. use common\logic\Document\Document\Module\DocumentModule;
  10. use common\logic\Document\Invoice\Module\InvoiceModule;
  11. use common\logic\Document\Quotation\Module\QuotationModule;
  12. use common\logic\Opinion\Module\OpinionModule;
  13. use common\logic\Order\Order\Module\OrderModule;
  14. use common\logic\Order\ProductOrder\Module\ProductOrderModule;
  15. use common\logic\Payment\Module\PaymentModule;
  16. use common\logic\PointSale\PointSale\Module\PointSaleModule;
  17. use common\logic\PointSale\UserPointSale\Module\UserPointSaleModule;
  18. use common\logic\Producer\Producer\Module\ProducerModule;
  19. use common\logic\Producer\ProducerPriceRange\Module\ProducerPriceRangeModule;
  20. use common\logic\Product\Product\Module\ProductModule;
  21. use common\logic\Product\ProductCategory\Module\ProductCategoryModule;
  22. use common\logic\Product\ProductPointSale\Module\ProductPointSaleModule;
  23. use common\logic\Product\ProductPrice\Module\ProductPriceModule;
  24. use common\logic\Subscription\ProductSubscription\Module\ProductSubscriptionModule;
  25. use common\logic\Subscription\Subscription\Module\SubscriptionModule;
  26. use common\logic\Ticket\Ticket\Module\TicketModule;
  27. use common\logic\Ticket\TicketMessage\Module\TicketMessageModule;
  28. use common\logic\Ticket\TicketUser\Module\TicketUserModule;
  29. use common\logic\User\User\Module\UserModule;
  30. use common\logic\User\UserGroup\Module\UserGroupModule;
  31. use common\logic\User\UserProducer\Module\UserProducerModule;
  32. use common\logic\User\UserUserGroup\Module\UserUserGroupModule;
  33. trait BusinessLogicTrait
  34. {
  35. public function getUnitModule(): UnitModule
  36. {
  37. return UnitModule::getInstance();
  38. }
  39. public function getOpinionModule(): OpinionModule
  40. {
  41. return OpinionModule::getInstance();
  42. }
  43. public function getUserProducerModule(): UserProducerModule
  44. {
  45. return UserProducerModule::getInstance();
  46. }
  47. public function getOrderModule(): OrderModule
  48. {
  49. return OrderModule::getInstance();
  50. }
  51. public function getTaxRateModule(): TaxRateModule
  52. {
  53. return TaxRateModule::getInstance();
  54. }
  55. public function getDistributionModule(): DistributionModule
  56. {
  57. return DistributionModule::getInstance();
  58. }
  59. public function getPointSaleDistributionModule(): PointSaleDistributionModule
  60. {
  61. return PointSaleDistributionModule::getInstance();
  62. }
  63. public function getProductDistributionModule(): ProductDistributionModule
  64. {
  65. return ProductDistributionModule::getInstance();
  66. }
  67. public function getDeliveryNoteModule(): DeliveryNoteModule
  68. {
  69. return DeliveryNoteModule::getInstance();
  70. }
  71. public function getDocumentModule(): DocumentModule
  72. {
  73. return DocumentModule::getInstance();
  74. }
  75. public function getInvoiceModule(): InvoiceModule
  76. {
  77. return InvoiceModule::getInstance();
  78. }
  79. public function getQuotationModule(): QuotationModule
  80. {
  81. return QuotationModule::getInstance();
  82. }
  83. public function getProductOrderModule(): ProductOrderModule
  84. {
  85. return ProductOrderModule::getInstance();
  86. }
  87. public function getPointSaleModule(): PointSaleModule
  88. {
  89. return PointSaleModule::getInstance();
  90. }
  91. public function getUserPointSaleModule(): UserPointSaleModule
  92. {
  93. return UserPointSaleModule::getInstance();
  94. }
  95. public function getProducerModule(): ProducerModule
  96. {
  97. return ProducerModule::getInstance();
  98. }
  99. public function getProducerPriceRangeModule(): ProducerPriceRangeModule
  100. {
  101. return ProducerPriceRangeModule::getInstance();
  102. }
  103. public function getProductModule(): ProductModule
  104. {
  105. return ProductModule::getInstance();
  106. }
  107. public function getProductCategoryModule(): ProductCategoryModule
  108. {
  109. return ProductCategoryModule::getInstance();
  110. }
  111. public function getProductPointSaleModule(): ProductPointSaleModule
  112. {
  113. return ProductPointSaleModule::getInstance();
  114. }
  115. public function getProductPriceModule(): ProductPriceModule
  116. {
  117. return ProductPriceModule::getInstance();
  118. }
  119. public function getProductSubscriptionModule(): ProductSubscriptionModule
  120. {
  121. return ProductSubscriptionModule::getInstance();
  122. }
  123. public function getSubscriptionModule(): SubscriptionModule
  124. {
  125. return SubscriptionModule::getInstance();
  126. }
  127. public function getPaymentModule(): PaymentModule
  128. {
  129. return PaymentModule::getInstance();
  130. }
  131. public function getUserModule(): UserModule
  132. {
  133. return UserModule::getInstance();
  134. }
  135. public function getUserGroupModule(): UserGroupModule
  136. {
  137. return UserGroupModule::getInstance();
  138. }
  139. public function getUserUserGroupModule(): UserUserGroupModule
  140. {
  141. return UserUserGroupModule::getInstance();
  142. }
  143. public function getTicketModule(): TicketModule
  144. {
  145. return TicketModule::getInstance();
  146. }
  147. public function getTicketMessageModule(): TicketMessageModule
  148. {
  149. return TicketMessageModule::getInstance();
  150. }
  151. public function getTicketUserModule(): TicketUserModule
  152. {
  153. return TicketUserModule::getInstance();
  154. }
  155. }