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.

229 rindas
6.4KB

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