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.

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