Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

153 lines
4.7KB

  1. <?php
  2. namespace Lc\ShopBundle\Services ;
  3. use Lc\ShopBundle\Context\DeliveryUtilsInterface;
  4. use Lc\ShopBundle\Context\DocumentUtilsInterface;
  5. use Lc\ShopBundle\Context\MerchantUtilsInterface;
  6. use Lc\ShopBundle\Context\OrderUtilsInterface;
  7. use Lc\ShopBundle\Context\PriceUtilsInterface;
  8. use Lc\ShopBundle\Context\ProductFamilyUtilsInterface;
  9. use Lc\ShopBundle\Context\SectionUtilsInterface;
  10. use Lc\ShopBundle\Context\Services\StatisticsUtilsInterface;
  11. use Lc\ShopBundle\Context\UserUtilsInterface;
  12. use League\Flysystem\Util;
  13. class UtilsManager
  14. {
  15. protected $utils ;
  16. protected $userUtils ;
  17. protected $merchantUtils ;
  18. protected $productFamilyUtils ;
  19. protected $orderUtils ;
  20. protected $priceUtils ;
  21. protected $deliveryUtils ;
  22. protected $creditUtils ;
  23. protected $documentUtils ;
  24. protected $mailUtils ;
  25. protected $ticketUtils ;
  26. protected $statisticsUtils;
  27. protected $pointLocationUtils ;
  28. protected $sectionUtils ;
  29. protected $mailjetSmsUtils ;
  30. protected $smsFactorUtils ;
  31. public function __construct(
  32. Utils $utils,
  33. UserUtilsInterface $userUtils,
  34. MerchantUtilsInterface $merchantUtils,
  35. ProductFamilyUtilsInterface $productFamilyUtils,
  36. OrderUtilsInterface $orderUtils,
  37. PriceUtilsInterface $priceUtils,
  38. DeliveryUtilsInterface $deliveryUtils,
  39. CreditUtils $creditUtils,
  40. DocumentUtilsInterface $documentUtils,
  41. MailUtils $mailUtils,
  42. TicketUtils $ticketUtils,
  43. PointLocationUtils $pointLocationUtils,
  44. UtilsProcess $utilsProcess,
  45. SectionUtilsInterface $sectionUtils,
  46. MailjetSmsUtils $mailjetSmsUtils,
  47. SmsFactorUtils $smsFactorUtils
  48. )
  49. {
  50. $this->utils = $utils ;
  51. $this->userUtils = $userUtils ;
  52. $this->merchantUtils = $merchantUtils ;
  53. $this->productFamilyUtils = $productFamilyUtils ;
  54. $this->orderUtils = $orderUtils ;
  55. $this->priceUtils = $priceUtils ;
  56. $this->deliveryUtils = $deliveryUtils ;
  57. $this->creditUtils = $creditUtils ;
  58. $this->documentUtils = $documentUtils ;
  59. $this->mailUtils = $mailUtils ;
  60. $this->ticketUtils = $ticketUtils ;
  61. $this->pointLocationUtils = $pointLocationUtils ;
  62. $this->utilsProcess = $utilsProcess ;
  63. $this->sectionUtils = $sectionUtils ;
  64. $this->mailjetSmsUtils = $mailjetSmsUtils ;
  65. $this->smsFactorUtils = $smsFactorUtils ;
  66. }
  67. public function getUtils(): Utils
  68. {
  69. return $this->utils ;
  70. }
  71. public function getUserUtils(): UserUtilsInterface
  72. {
  73. return $this->userUtils ;
  74. }
  75. public function getMerchantUtils(): MerchantUtilsInterface
  76. {
  77. return $this->merchantUtils ;
  78. }
  79. public function getProductFamilyUtils(): ProductFamilyUtilsInterface
  80. {
  81. return $this->productFamilyUtils ;
  82. }
  83. public function getOrderUtils(): OrderUtilsInterface
  84. {
  85. return $this->orderUtils ;
  86. }
  87. public function getPriceUtils(): PriceUtilsInterface
  88. {
  89. return $this->priceUtils ;
  90. }
  91. public function getDeliveryUtils(): DeliveryUtilsInterface
  92. {
  93. return $this->deliveryUtils ;
  94. }
  95. public function getCreditUtils(): CreditUtils
  96. {
  97. return $this->creditUtils ;
  98. }
  99. public function getDocumentUtils(): DocumentUtilsInterface
  100. {
  101. return $this->documentUtils ;
  102. }
  103. public function getMailUtils(): MailUtils
  104. {
  105. return $this->mailUtils ;
  106. }
  107. public function getTicketUtils(): TicketUtils
  108. {
  109. return $this->ticketUtils ;
  110. }
  111. public function getPointLocationUtils(): PointLocationUtils
  112. {
  113. return $this->pointLocationUtils ;
  114. }
  115. public function getUtilsProcess(): UtilsProcess
  116. {
  117. return $this->utilsProcess ;
  118. }
  119. public function getSectionUtils(): SectionUtilsInterface
  120. {
  121. return $this->sectionUtils ;
  122. }
  123. public function getMailjetSmsUtils(): MailjetSmsUtils
  124. {
  125. return $this->mailjetSmsUtils ;
  126. }
  127. public function getSmsFactorUtils(): SmsFactorUtils
  128. {
  129. return $this->smsFactorUtils ;
  130. }
  131. }