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.

BusinessLogicTrait.php 6.0KB

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