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.

271 line
7.6KB

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