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.

253 line
7.1KB

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