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.

301 line
8.9KB

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