No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

BusinessLogicTrait.php 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. <?php
  2. namespace common\components;
  3. use common\logic\Config\TaxRate\Module\TaxRateModule;
  4. use common\logic\Config\Unit\Module\UnitModule;
  5. use common\logic\Distribution\Distribution\Module\DistributionModule;
  6. use common\logic\Distribution\PointSaleDistribution\Module\PointSaleDistributionModule;
  7. use common\logic\Distribution\ProductDistribution\Module\ProductDistributionModule;
  8. use common\logic\Document\DeliveryNote\Module\DeliveryNoteModule;
  9. use common\logic\Document\Document\Module\DocumentModule;
  10. use common\logic\Document\Invoice\Module\InvoiceModule;
  11. use common\logic\Document\Quotation\Module\QuotationModule;
  12. use common\logic\Feature\Feature\FeatureModule;
  13. use common\logic\Opinion\Module\OpinionModule;
  14. use common\logic\Order\Order\Module\OrderModule;
  15. use common\logic\Order\ProductOrder\Module\ProductOrderModule;
  16. use common\logic\Payment\Module\PaymentModule;
  17. use common\logic\PointSale\PointSale\Module\PointSaleModule;
  18. use common\logic\PointSale\UserPointSale\Module\UserPointSaleModule;
  19. use common\logic\Producer\Producer\Module\ProducerModule;
  20. use common\logic\Producer\ProducerPriceRange\Module\ProducerPriceRangeModule;
  21. use common\logic\Product\Product\Module\ProductModule;
  22. use common\logic\Product\ProductCategory\Module\ProductCategoryModule;
  23. use common\logic\Product\ProductPointSale\Module\ProductPointSaleModule;
  24. use common\logic\Product\ProductPrice\Module\ProductPriceModule;
  25. use common\logic\Subscription\ProductSubscription\Module\ProductSubscriptionModule;
  26. use common\logic\Subscription\Subscription\Module\SubscriptionModule;
  27. use common\logic\Ticket\Ticket\Module\TicketModule;
  28. use common\logic\Ticket\TicketMessage\Module\TicketMessageModule;
  29. use common\logic\Ticket\TicketUser\Module\TicketUserModule;
  30. use common\logic\User\User\Module\UserModule;
  31. use common\logic\User\UserGroup\Module\UserGroupModule;
  32. use common\logic\User\UserProducer\Module\UserProducerModule;
  33. use common\logic\User\UserUserGroup\Module\UserUserGroupModule;
  34. trait BusinessLogicTrait
  35. {
  36. public function getUnitModule(): UnitModule
  37. {
  38. return UnitModule::getInstance();
  39. }
  40. public function getOpinionModule(): OpinionModule
  41. {
  42. return OpinionModule::getInstance();
  43. }
  44. public function getUserProducerModule(): UserProducerModule
  45. {
  46. return UserProducerModule::getInstance();
  47. }
  48. public function getOrderModule(): OrderModule
  49. {
  50. return OrderModule::getInstance();
  51. }
  52. public function getTaxRateModule(): TaxRateModule
  53. {
  54. return TaxRateModule::getInstance();
  55. }
  56. public function getDistributionModule(): DistributionModule
  57. {
  58. return DistributionModule::getInstance();
  59. }
  60. public function getPointSaleDistributionModule(): PointSaleDistributionModule
  61. {
  62. return PointSaleDistributionModule::getInstance();
  63. }
  64. public function getProductDistributionModule(): ProductDistributionModule
  65. {
  66. return ProductDistributionModule::getInstance();
  67. }
  68. public function getDeliveryNoteModule(): DeliveryNoteModule
  69. {
  70. return DeliveryNoteModule::getInstance();
  71. }
  72. public function getDocumentModule(): DocumentModule
  73. {
  74. return DocumentModule::getInstance();
  75. }
  76. public function getInvoiceModule(): InvoiceModule
  77. {
  78. return InvoiceModule::getInstance();
  79. }
  80. public function getQuotationModule(): QuotationModule
  81. {
  82. return QuotationModule::getInstance();
  83. }
  84. public function getProductOrderModule(): ProductOrderModule
  85. {
  86. return ProductOrderModule::getInstance();
  87. }
  88. public function getPointSaleModule(): PointSaleModule
  89. {
  90. return PointSaleModule::getInstance();
  91. }
  92. public function getUserPointSaleModule(): UserPointSaleModule
  93. {
  94. return UserPointSaleModule::getInstance();
  95. }
  96. public function getProducerModule(): ProducerModule
  97. {
  98. return ProducerModule::getInstance();
  99. }
  100. public function getProducerPriceRangeModule(): ProducerPriceRangeModule
  101. {
  102. return ProducerPriceRangeModule::getInstance();
  103. }
  104. public function getProductModule(): ProductModule
  105. {
  106. return ProductModule::getInstance();
  107. }
  108. public function getProductCategoryModule(): ProductCategoryModule
  109. {
  110. return ProductCategoryModule::getInstance();
  111. }
  112. public function getProductPointSaleModule(): ProductPointSaleModule
  113. {
  114. return ProductPointSaleModule::getInstance();
  115. }
  116. public function getProductPriceModule(): ProductPriceModule
  117. {
  118. return ProductPriceModule::getInstance();
  119. }
  120. public function getProductSubscriptionModule(): ProductSubscriptionModule
  121. {
  122. return ProductSubscriptionModule::getInstance();
  123. }
  124. public function getSubscriptionModule(): SubscriptionModule
  125. {
  126. return SubscriptionModule::getInstance();
  127. }
  128. public function getPaymentModule(): PaymentModule
  129. {
  130. return PaymentModule::getInstance();
  131. }
  132. public function getUserModule(): UserModule
  133. {
  134. return UserModule::getInstance();
  135. }
  136. public function getUserGroupModule(): UserGroupModule
  137. {
  138. return UserGroupModule::getInstance();
  139. }
  140. public function getUserUserGroupModule(): UserUserGroupModule
  141. {
  142. return UserUserGroupModule::getInstance();
  143. }
  144. public function getTicketModule(): TicketModule
  145. {
  146. return TicketModule::getInstance();
  147. }
  148. public function getTicketMessageModule(): TicketMessageModule
  149. {
  150. return TicketMessageModule::getInstance();
  151. }
  152. public function getTicketUserModule(): TicketUserModule
  153. {
  154. return TicketUserModule::getInstance();
  155. }
  156. public function getFeatureModule(): FeatureModule
  157. {
  158. return FeatureModule::getInstance();
  159. }
  160. }