Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

223 Zeilen
6.2KB

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