您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

BusinessLogicTrait.php 6.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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\Accessory\AccessoryModule;
  26. use domain\Product\Product\ProductModule;
  27. use domain\Product\ProductAccessory\ProductAccessoryModule;
  28. use domain\Product\ProductCategory\ProductCategoryModule;
  29. use domain\Product\ProductPointSale\ProductPointSaleModule;
  30. use domain\Product\ProductPrice\Module\ProductPriceModule;
  31. use domain\Setting\SettingModule;
  32. use domain\Subscription\ProductSubscription\ProductSubscriptionModule;
  33. use domain\Subscription\Subscription\SubscriptionModule;
  34. use domain\Ticket\Ticket\TicketModule;
  35. use domain\Ticket\TicketMessage\TicketMessageModule;
  36. use domain\Ticket\TicketUser\TicketUserModule;
  37. use domain\User\User\UserModule;
  38. use domain\User\UserGroup\UserGroupModule;
  39. use domain\User\UserMessage\UserMessageModule;
  40. use domain\User\UserProducer\UserProducerModule;
  41. use domain\User\UserUserGroup\UserUserGroupModule;
  42. trait BusinessLogicTrait
  43. {
  44. public function getProductAccessoryModule(): ProductAccessoryModule
  45. {
  46. return ProductAccessoryModule::getInstance();
  47. }
  48. public function getAccessoryModule(): AccessoryModule
  49. {
  50. return AccessoryModule::getInstance();
  51. }
  52. public function getOrderStatusModule(): OrderStatusModule
  53. {
  54. return OrderStatusModule::getInstance();
  55. }
  56. public function getOrderStatusHistoryModule(): OrderStatusHistoryModule
  57. {
  58. return OrderStatusHistoryModule::getInstance();
  59. }
  60. public function getUnitModule(): UnitModule
  61. {
  62. return UnitModule::getInstance();
  63. }
  64. public function getOpinionModule(): OpinionModule
  65. {
  66. return OpinionModule::getInstance();
  67. }
  68. public function getUserProducerModule(): UserProducerModule
  69. {
  70. return UserProducerModule::getInstance();
  71. }
  72. public function getOrderModule(): OrderModule
  73. {
  74. return OrderModule::getInstance();
  75. }
  76. public function getTaxRateModule(): TaxRateModule
  77. {
  78. return TaxRateModule::getInstance();
  79. }
  80. public function getDistributionModule(): DistributionModule
  81. {
  82. return DistributionModule::getInstance();
  83. }
  84. public function getPointSaleDistributionModule(): PointSaleDistributionModule
  85. {
  86. return PointSaleDistributionModule::getInstance();
  87. }
  88. public function getProductDistributionModule(): ProductDistributionModule
  89. {
  90. return ProductDistributionModule::getInstance();
  91. }
  92. public function getDeliveryNoteModule(): DeliveryNoteModule
  93. {
  94. return DeliveryNoteModule::getInstance();
  95. }
  96. public function getDocumentModule(): DocumentModule
  97. {
  98. return DocumentModule::getInstance();
  99. }
  100. public function getInvoiceModule(): InvoiceModule
  101. {
  102. return InvoiceModule::getInstance();
  103. }
  104. public function getQuotationModule(): QuotationModule
  105. {
  106. return QuotationModule::getInstance();
  107. }
  108. public function getProductOrderModule(): ProductOrderModule
  109. {
  110. return ProductOrderModule::getInstance();
  111. }
  112. public function getPointSaleModule(): PointSaleModule
  113. {
  114. return PointSaleModule::getInstance();
  115. }
  116. public function getSharedPointSaleModule(): SharedPointSaleModule
  117. {
  118. return SharedPointSaleModule::getInstance();
  119. }
  120. public function getUserPointSaleModule(): UserPointSaleModule
  121. {
  122. return UserPointSaleModule::getInstance();
  123. }
  124. public function getProducerModule(): ProducerModule
  125. {
  126. return ProducerModule::getInstance();
  127. }
  128. public function getProducerPriceRangeModule(): ProducerPriceRangeModule
  129. {
  130. return ProducerPriceRangeModule::getInstance();
  131. }
  132. public function getProductModule(): ProductModule
  133. {
  134. return ProductModule::getInstance();
  135. }
  136. public function getProductCategoryModule(): ProductCategoryModule
  137. {
  138. return ProductCategoryModule::getInstance();
  139. }
  140. public function getProductPointSaleModule(): ProductPointSaleModule
  141. {
  142. return ProductPointSaleModule::getInstance();
  143. }
  144. public function getProductPriceModule(): ProductPriceModule
  145. {
  146. return ProductPriceModule::getInstance();
  147. }
  148. public function getProductSubscriptionModule(): ProductSubscriptionModule
  149. {
  150. return ProductSubscriptionModule::getInstance();
  151. }
  152. public function getSubscriptionModule(): SubscriptionModule
  153. {
  154. return SubscriptionModule::getInstance();
  155. }
  156. public function getPaymentModule(): PaymentModule
  157. {
  158. return PaymentModule::getInstance();
  159. }
  160. public function getUserModule(): UserModule
  161. {
  162. return UserModule::getInstance();
  163. }
  164. public function getUserMessageModule(): UserMessageModule
  165. {
  166. return UserMessageModule::getInstance();
  167. }
  168. public function getUserGroupModule(): UserGroupModule
  169. {
  170. return UserGroupModule::getInstance();
  171. }
  172. public function getUserUserGroupModule(): UserUserGroupModule
  173. {
  174. return UserUserGroupModule::getInstance();
  175. }
  176. public function getTicketModule(): TicketModule
  177. {
  178. return TicketModule::getInstance();
  179. }
  180. public function getTicketMessageModule(): TicketMessageModule
  181. {
  182. return TicketMessageModule::getInstance();
  183. }
  184. public function getTicketUserModule(): TicketUserModule
  185. {
  186. return TicketUserModule::getInstance();
  187. }
  188. public function getFeatureModule(): FeatureModule
  189. {
  190. return FeatureModule::getInstance();
  191. }
  192. public function getFeatureProducerModule(): FeatureProducerModule
  193. {
  194. return FeatureProducerModule::getInstance();
  195. }
  196. public function getSettingModule(): SettingModule
  197. {
  198. return SettingModule::getInstance();
  199. }
  200. }