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.

350 lines
11KB

  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\Opinion\Wrapper\OpinionManager;
  20. use common\logic\Order\Order\Wrapper\OrderContainer;
  21. use common\logic\Order\Order\Wrapper\OrderManager;
  22. use common\logic\Order\ProductOrder\Wrapper\ProductOrderContainer;
  23. use common\logic\Order\ProductOrder\Wrapper\ProductOrderManager;
  24. use common\logic\Payment\Wrapper\PaymentContainer;
  25. use common\logic\Payment\Wrapper\PaymentManager;
  26. use common\logic\PointSale\PointSale\Wrapper\PointSaleContainer;
  27. use common\logic\PointSale\PointSale\Wrapper\PointSaleManager;
  28. use common\logic\PointSale\UserPointSale\Wrapper\UserPointSaleContainer;
  29. use common\logic\PointSale\UserPointSale\Wrapper\UserPointSaleManager;
  30. use common\logic\Producer\Producer\Wrapper\ProducerContainer;
  31. use common\logic\Producer\Producer\Wrapper\ProducerManager;
  32. use common\logic\Producer\ProducerPriceRange\Wrapper\ProducerPriceRangeContainer;
  33. use common\logic\Producer\ProducerPriceRange\Wrapper\ProducerPriceRangeManager;
  34. use common\logic\Product\Product\Wrapper\ProductContainer;
  35. use common\logic\Product\Product\Wrapper\ProductManager;
  36. use common\logic\Product\ProductCategory\Wrapper\ProductCategoryContainer;
  37. use common\logic\Product\ProductCategory\Wrapper\ProductCategoryManager;
  38. use common\logic\Product\ProductPointSale\Wrapper\ProductPointSaleContainer;
  39. use common\logic\Product\ProductPointSale\Wrapper\ProductPointSaleManager;
  40. use common\logic\Product\ProductPrice\Wrapper\ProductPriceContainer;
  41. use common\logic\Product\ProductPrice\Wrapper\ProductPriceManager;
  42. use common\logic\Subscription\ProductSubscription\Wrapper\ProductSubscriptionContainer;
  43. use common\logic\Subscription\ProductSubscription\Wrapper\ProductSubscriptionManager;
  44. use common\logic\Subscription\Subscription\Wrapper\SubscriptionContainer;
  45. use common\logic\Subscription\Subscription\Wrapper\SubscriptionManager;
  46. use common\logic\Ticket\Ticket\Wrapper\TicketContainer;
  47. use common\logic\Ticket\Ticket\Wrapper\TicketManager;
  48. use common\logic\Ticket\TicketMessage\Wrapper\TicketMessageContainer;
  49. use common\logic\Ticket\TicketMessage\Wrapper\TicketMessageManager;
  50. use common\logic\Ticket\TicketUser\Wrapper\TicketUserContainer;
  51. use common\logic\Ticket\TicketUser\Wrapper\TicketUserManager;
  52. use common\logic\User\User\Wrapper\UserContainer;
  53. use common\logic\User\User\Wrapper\UserManager;
  54. use common\logic\User\User\Wrapper\UserModule;
  55. use common\logic\User\UserGroup\Wrapper\UserGroupContainer;
  56. use common\logic\User\UserGroup\Wrapper\UserGroupManager;
  57. use common\logic\User\UserProducer\Wrapper\UserProducerContainer;
  58. use common\logic\User\UserProducer\Wrapper\UserProducerManager;
  59. use common\logic\User\UserUserGroup\Wrapper\UserUserGroupContainer;
  60. use common\logic\User\UserUserGroup\Wrapper\UserUserGroupManager;
  61. trait BusinessLogicTrait
  62. {
  63. public function getOpinionManager(): OpinionManager
  64. {
  65. return OpinionManager::getInstance();
  66. }
  67. public function getUserProducerManager(): UserProducerManager
  68. {
  69. return UserProducerManager::getInstance();
  70. }
  71. public function getOrderManager(): OrderManager
  72. {
  73. return OrderManager::getInstance();
  74. }
  75. public function getTaxRateManager(): TaxRateManager
  76. {
  77. return TaxRateManager::getInstance();
  78. }
  79. public function getDistributionManager(): DistributionManager
  80. {
  81. return DistributionManager::getInstance();
  82. }
  83. public function getPointSaleDistributionManager(): PointSaleDistributionManager
  84. {
  85. return PointSaleDistributionManager::getInstance();
  86. }
  87. public function getProductDistributionManager(): ProductDistributionManager
  88. {
  89. return ProductDistributionManager::getInstance();
  90. }
  91. public function getDeliveryNoteManager(): DeliveryNoteManager
  92. {
  93. return DeliveryNoteManager::getInstance();
  94. }
  95. public function getDocumentManager(): DocumentManager
  96. {
  97. return DocumentManager::getInstance();
  98. }
  99. public function getInvoiceManager(): InvoiceManager
  100. {
  101. return InvoiceManager::getInstance();
  102. }
  103. public function getQuotationManager(): QuotationManager
  104. {
  105. return QuotationManager::getInstance();
  106. }
  107. public function getProductOrderManager(): ProductOrderManager
  108. {
  109. return ProductOrderManager::getInstance();
  110. }
  111. public function getPointSaleManager(): PointSaleManager
  112. {
  113. return PointSaleManager::getInstance();
  114. }
  115. public function getUserPointSaleManager(): UserPointSaleManager
  116. {
  117. return UserPointSaleManager::getInstance();
  118. }
  119. public function getProducerManager(): ProducerManager
  120. {
  121. return ProducerManager::getInstance();
  122. }
  123. public function getProducerPriceRangeManager(): ProducerPriceRangeManager
  124. {
  125. return ProducerPriceRangeManager::getInstance();
  126. }
  127. public function getProductManager(): ProductManager
  128. {
  129. return ProductManager::getInstance();
  130. }
  131. public function getProductCategoryManager(): ProductCategoryManager
  132. {
  133. return ProductCategoryManager::getInstance();
  134. }
  135. public function getProductPointSaleManager(): ProductPointSaleManager
  136. {
  137. return ProductPointSaleManager::getInstance();
  138. }
  139. public function getProductPriceManager(): ProductPriceManager
  140. {
  141. return ProductPriceManager::getInstance();
  142. }
  143. public function getProductSubscriptionManager(): ProductSubscriptionManager
  144. {
  145. return ProductSubscriptionManager::getInstance();
  146. }
  147. public function getSubscriptionManager(): SubscriptionManager
  148. {
  149. return SubscriptionManager::getInstance();
  150. }
  151. public function getPaymentManager(): PaymentManager
  152. {
  153. return PaymentManager::getInstance();
  154. }
  155. public function getUserModule(): UserModule
  156. {
  157. return UserModule::getInstance();
  158. }
  159. public function getUserContainer(): UserContainer
  160. {
  161. return UserContainer::getInstance();
  162. }
  163. public function getUserGroupManager(): UserGroupManager
  164. {
  165. return UserGroupManager::getInstance();
  166. }
  167. public function getUserUserGroupManager(): UserUserGroupManager
  168. {
  169. return UserUserGroupManager::getInstance();
  170. }
  171. public function getTicketManager(): TicketManager
  172. {
  173. return TicketManager::getInstance();
  174. }
  175. public function getTicketMessageManager(): TicketMessageManager
  176. {
  177. return TicketMessageManager::getInstance();
  178. }
  179. public function getTicketUserManager(): TicketUserManager
  180. {
  181. return TicketUserManager::getInstance();
  182. }
  183. public function getProducerContainer(): ProducerContainer
  184. {
  185. return ProducerContainer::getInstance();
  186. }
  187. public function getProducerPriceRangeContainer(): ProducerPriceRangeContainer
  188. {
  189. return ProducerPriceRangeContainer::getInstance();
  190. }
  191. public function getUserProducerContainer(): UserProducerContainer
  192. {
  193. return UserProducerContainer::getInstance();
  194. }
  195. public function getPaymentContainer(): PaymentContainer
  196. {
  197. return PaymentContainer::getInstance();
  198. }
  199. public function getDocumentContainer(): DocumentContainer
  200. {
  201. return DocumentContainer::getInstance();
  202. }
  203. public function getDeliveryNoteContainer(): DeliveryNoteContainer
  204. {
  205. return DeliveryNoteContainer::getInstance();
  206. }
  207. public function getInvoiceContainer(): InvoiceContainer
  208. {
  209. return InvoiceContainer::getInstance();
  210. }
  211. public function getQuotationContainer(): QuotationContainer
  212. {
  213. return QuotationContainer::getInstance();
  214. }
  215. public function getUserGroupContainer(): UserGroupContainer
  216. {
  217. return UserGroupContainer::getInstance();
  218. }
  219. public function getUserUserGroupContainer(): UserUserGroupContainer
  220. {
  221. return UserUserGroupContainer::getInstance();
  222. }
  223. public function getDistributionContainer(): DistributionContainer
  224. {
  225. return DistributionContainer::getInstance();
  226. }
  227. public function getTaxRateContainer(): TaxRateContainer
  228. {
  229. return TaxRateContainer::getInstance();
  230. }
  231. public function getOrderContainer(): OrderContainer
  232. {
  233. return OrderContainer::getInstance();
  234. }
  235. public function getUserPointSaleContainer(): UserPointSaleContainer
  236. {
  237. return UserPointSaleContainer::getInstance();
  238. }
  239. public function getPointSaleContainer(): PointSaleContainer
  240. {
  241. return PointSaleContainer::getInstance();
  242. }
  243. public function getProductOrderContainer(): ProductOrderContainer
  244. {
  245. return ProductOrderContainer::getInstance();
  246. }
  247. public function getProductContainer(): ProductContainer
  248. {
  249. return ProductContainer::getInstance();
  250. }
  251. public function getProductCategoryContainer(): ProductCategoryContainer
  252. {
  253. return ProductCategoryContainer::getInstance();
  254. }
  255. public function getProductPointSaleContainer(): ProductPointSaleContainer
  256. {
  257. return ProductPointSaleContainer::getInstance();
  258. }
  259. public function getProductPriceContainer(): ProductPriceContainer
  260. {
  261. return ProductPriceContainer::getInstance();
  262. }
  263. public function getSubscriptionContainer(): SubscriptionContainer
  264. {
  265. return SubscriptionContainer::getInstance();
  266. }
  267. public function getProductSubscriptionContainer(): ProductSubscriptionContainer
  268. {
  269. return ProductSubscriptionContainer::getInstance();
  270. }
  271. public function getPointSaleDistributionContainer(): PointSaleDistributionContainer
  272. {
  273. return PointSaleDistributionContainer::getInstance();
  274. }
  275. public function getProductDistributionContainer(): ProductDistributionContainer
  276. {
  277. return ProductDistributionContainer::getInstance();
  278. }
  279. public function getTicketContainer(): TicketContainer
  280. {
  281. return TicketContainer::getInstance();
  282. }
  283. public function getTicketMessageContainer(): TicketMessageContainer
  284. {
  285. return TicketMessageContainer::getInstance();
  286. }
  287. public function getTicketUserContainer(): TicketUserContainer
  288. {
  289. return TicketUserContainer::getInstance();
  290. }
  291. }