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.

319 lines
10KB

  1. <?php
  2. namespace common\components;
  3. use common\logic\Config\TaxRate\Wrapper\TaxRateContainer;
  4. use common\logic\Config\TaxRate\Wrapper\TaxRateManager;
  5. use common\logic\Distribution\Distribution\Wrapper\DistributionManager;
  6. use common\logic\Distribution\Distribution\Wrapper\DistributionContainer;
  7. use common\logic\Distribution\PointSaleDistribution\Wrapper\PointSaleDistributionContainer;
  8. use common\logic\Distribution\PointSaleDistribution\Wrapper\PointSaleDistributionManager;
  9. use common\logic\Distribution\ProductDistribution\Wrapper\ProductDistributionContainer;
  10. use common\logic\Distribution\ProductDistribution\Wrapper\ProductDistributionManager;
  11. use common\logic\Document\DeliveryNote\Wrapper\DeliveryNoteContainer;
  12. use common\logic\Document\DeliveryNote\Wrapper\DeliveryNoteManager;
  13. use common\logic\Document\Document\Wrapper\DocumentContainer;
  14. use common\logic\Document\Document\Wrapper\DocumentManager;
  15. use common\logic\Document\Invoice\Wrapper\InvoiceContainer;
  16. use common\logic\Document\Invoice\Wrapper\InvoiceManager;
  17. use common\logic\Document\Quotation\Wrapper\QuotationContainer;
  18. use common\logic\Document\Quotation\Wrapper\QuotationManager;
  19. use common\logic\Order\Order\Wrapper\OrderContainer;
  20. use common\logic\Order\Order\Wrapper\OrderManager;
  21. use common\logic\Order\OrderStatusHistory\Wrapper\OrderStatusHistoryContainer;
  22. use common\logic\Order\OrderStatusHistory\Wrapper\OrderStatusHistoryManager;
  23. use common\logic\Order\ProductOrder\Wrapper\ProductOrderContainer;
  24. use common\logic\Order\ProductOrder\Wrapper\ProductOrderManager;
  25. use common\logic\PointSale\PointSale\Wrapper\PointSaleContainer;
  26. use common\logic\PointSale\PointSale\Wrapper\PointSaleManager;
  27. use common\logic\PointSale\UserPointSale\Wrapper\UserPointSaleContainer;
  28. use common\logic\PointSale\UserPointSale\Wrapper\UserPointSaleManager;
  29. use common\logic\Producer\Producer\Wrapper\ProducerContainer;
  30. use common\logic\Producer\Producer\Wrapper\ProducerManager;
  31. use common\logic\Producer\ProducerPriceRange\Wrapper\ProducerPriceRangeContainer;
  32. use common\logic\Producer\ProducerPriceRange\Wrapper\ProducerPriceRangeManager;
  33. use common\logic\Product\Product\Wrapper\ProductContainer;
  34. use common\logic\Product\Product\Wrapper\ProductManager;
  35. use common\logic\Product\ProductCategory\Wrapper\ProductCategoryContainer;
  36. use common\logic\Product\ProductCategory\Wrapper\ProductCategoryManager;
  37. use common\logic\Product\ProductPointSale\Wrapper\ProductPointSaleContainer;
  38. use common\logic\Product\ProductPointSale\Wrapper\ProductPointSaleManager;
  39. use common\logic\Product\ProductPrice\Wrapper\ProductPriceContainer;
  40. use common\logic\Product\ProductPrice\Wrapper\ProductPriceManager;
  41. use common\logic\Subscription\ProductSubscription\Wrapper\ProductSubscriptionContainer;
  42. use common\logic\Subscription\ProductSubscription\Wrapper\ProductSubscriptionManager;
  43. use common\logic\Subscription\Subscription\Wrapper\SubscriptionContainer;
  44. use common\logic\Subscription\Subscription\Wrapper\SubscriptionManager;
  45. use common\logic\User\CreditHistory\Wrapper\CreditHistoryContainer;
  46. use common\logic\User\CreditHistory\Wrapper\CreditHistoryManager;
  47. use common\logic\User\User\Wrapper\UserContainer;
  48. use common\logic\User\User\Wrapper\UserManager;
  49. use common\logic\User\UserGroup\Wrapper\UserGroupContainer;
  50. use common\logic\User\UserGroup\Wrapper\UserGroupManager;
  51. use common\logic\User\UserProducer\Wrapper\UserProducerContainer;
  52. use common\logic\User\UserProducer\Wrapper\UserProducerManager;
  53. use common\logic\User\UserUserGroup\Wrapper\UserUserGroupContainer;
  54. use common\logic\User\UserUserGroup\Wrapper\UserUserGroupManager;
  55. trait BusinessLogicTrait
  56. {
  57. public function getUserProducerManager(): UserProducerManager
  58. {
  59. return UserProducerManager::getInstance();
  60. }
  61. public function getOrderManager(): OrderManager
  62. {
  63. return OrderManager::getInstance();
  64. }
  65. public function getTaxRateManager(): TaxRateManager
  66. {
  67. return TaxRateManager::getInstance();
  68. }
  69. public function getDistributionManager(): DistributionManager
  70. {
  71. return DistributionManager::getInstance();
  72. }
  73. public function getPointSaleDistributionManager(): PointSaleDistributionManager
  74. {
  75. return PointSaleDistributionManager::getInstance();
  76. }
  77. public function getProductDistributionManager(): ProductDistributionManager
  78. {
  79. return ProductDistributionManager::getInstance();
  80. }
  81. public function getDeliveryNoteManager(): DeliveryNoteManager
  82. {
  83. return DeliveryNoteManager::getInstance();
  84. }
  85. public function getDocumentManager(): DocumentManager
  86. {
  87. return DocumentManager::getInstance();
  88. }
  89. public function getInvoiceManager(): InvoiceManager
  90. {
  91. return InvoiceManager::getInstance();
  92. }
  93. public function getQuotationManager(): QuotationManager
  94. {
  95. return QuotationManager::getInstance();
  96. }
  97. public function getOrderStatusHistoryManager(): OrderStatusHistoryManager
  98. {
  99. return OrderStatusHistoryManager::getInstance();
  100. }
  101. public function getProductOrderManager(): ProductOrderManager
  102. {
  103. return ProductOrderManager::getInstance();
  104. }
  105. public function getPointSaleManager(): PointSaleManager
  106. {
  107. return PointSaleManager::getInstance();
  108. }
  109. public function getUserPointSaleManager(): UserPointSaleManager
  110. {
  111. return UserPointSaleManager::getInstance();
  112. }
  113. public function getProducerManager(): ProducerManager
  114. {
  115. return ProducerManager::getInstance();
  116. }
  117. public function getProducerPriceRangeManager(): ProducerPriceRangeManager
  118. {
  119. return ProducerPriceRangeManager::getInstance();
  120. }
  121. public function getProductManager(): ProductManager
  122. {
  123. return ProductManager::getInstance();
  124. }
  125. public function getProductCategoryManager(): ProductCategoryManager
  126. {
  127. return ProductCategoryManager::getInstance();
  128. }
  129. public function getProductPointSaleManager(): ProductPointSaleManager
  130. {
  131. return ProductPointSaleManager::getInstance();
  132. }
  133. public function getProductPriceManager(): ProductPriceManager
  134. {
  135. return ProductPriceManager::getInstance();
  136. }
  137. public function getProductSubscriptionManager(): ProductSubscriptionManager
  138. {
  139. return ProductSubscriptionManager::getInstance();
  140. }
  141. public function getSubscriptionManager(): SubscriptionManager
  142. {
  143. return SubscriptionManager::getInstance();
  144. }
  145. public function getCreditHistoryManager(): CreditHistoryManager
  146. {
  147. return CreditHistoryManager::getInstance();
  148. }
  149. public function getUserManager(): UserManager
  150. {
  151. return UserManager::getInstance();
  152. }
  153. public function getUserGroupManager(): UserGroupManager
  154. {
  155. return UserGroupManager::getInstance();
  156. }
  157. public function getUserUserGroupManager(): UserUserGroupManager
  158. {
  159. return UserUserGroupManager::getInstance();
  160. }
  161. public function getUserContainer(): UserContainer
  162. {
  163. return UserContainer::getInstance();
  164. }
  165. public function getProducerContainer(): ProducerContainer
  166. {
  167. return ProducerContainer::getInstance();
  168. }
  169. public function getProducerPriceRangeContainer(): ProducerPriceRangeContainer
  170. {
  171. return ProducerPriceRangeContainer::getInstance();
  172. }
  173. public function getUserProducerContainer(): UserProducerContainer
  174. {
  175. return UserProducerContainer::getInstance();
  176. }
  177. public function getCreditHistoryContainer(): CreditHistoryContainer
  178. {
  179. return CreditHistoryContainer::getInstance();
  180. }
  181. public function getDocumentContainer(): DocumentContainer
  182. {
  183. return DocumentContainer::getInstance();
  184. }
  185. public function getDeliveryNoteContainer(): DeliveryNoteContainer
  186. {
  187. return DeliveryNoteContainer::getInstance();
  188. }
  189. public function getInvoiceContainer(): InvoiceContainer
  190. {
  191. return InvoiceContainer::getInstance();
  192. }
  193. public function getQuotationContainer(): QuotationContainer
  194. {
  195. return QuotationContainer::getInstance();
  196. }
  197. public function getUserGroupContainer(): UserGroupContainer
  198. {
  199. return UserGroupContainer::getInstance();
  200. }
  201. public function getUserUserGroupContainer(): UserUserGroupContainer
  202. {
  203. return UserUserGroupContainer::getInstance();
  204. }
  205. public function getDistributionContainer(): DistributionContainer
  206. {
  207. return DistributionContainer::getInstance();
  208. }
  209. public function getTaxRateContainer(): TaxRateContainer
  210. {
  211. return TaxRateContainer::getInstance();
  212. }
  213. public function getOrderContainer(): OrderContainer
  214. {
  215. return OrderContainer::getInstance();
  216. }
  217. public function getOrderSatusHistoryContainer(): OrderStatusHistoryContainer
  218. {
  219. return OrderStatusHistoryContainer::getInstance();
  220. }
  221. public function getUserPointSaleContainer(): UserPointSaleContainer
  222. {
  223. return UserPointSaleContainer::getInstance();
  224. }
  225. public function getPointSaleContainer(): PointSaleContainer
  226. {
  227. return PointSaleContainer::getInstance();
  228. }
  229. public function getProductOrderContainer(): ProductOrderContainer
  230. {
  231. return ProductOrderContainer::getInstance();
  232. }
  233. public function getProductContainer(): ProductContainer
  234. {
  235. return ProductContainer::getInstance();
  236. }
  237. public function getProductCategoryContainer(): ProductCategoryContainer
  238. {
  239. return ProductCategoryContainer::getInstance();
  240. }
  241. public function getProductPointSaleContainer(): ProductPointSaleContainer
  242. {
  243. return ProductPointSaleContainer::getInstance();
  244. }
  245. public function getProductPriceContainer(): ProductPriceContainer
  246. {
  247. return ProductPriceContainer::getInstance();
  248. }
  249. public function getSubscriptionContainer(): SubscriptionContainer
  250. {
  251. return SubscriptionContainer::getInstance();
  252. }
  253. public function getProductSubscriptionContainer(): ProductSubscriptionContainer
  254. {
  255. return ProductSubscriptionContainer::getInstance();
  256. }
  257. public function getPointSaleDistributionContainer(): PointSaleDistributionContainer
  258. {
  259. return PointSaleDistributionContainer::getInstance();
  260. }
  261. public function getProductDistributionContainer(): ProductDistributionContainer
  262. {
  263. return ProductDistributionContainer::getInstance();
  264. }
  265. }