No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

UtilsManager.php 4.5KB

hace 4 años
hace 4 años
hace 4 años
hace 4 años
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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. public function __construct(
  31. Utils $utils,
  32. UserUtilsInterface $userUtils,
  33. MerchantUtilsInterface $merchantUtils,
  34. ProductFamilyUtilsInterface $productFamilyUtils,
  35. OrderUtilsInterface $orderUtils,
  36. PriceUtilsInterface $priceUtils,
  37. DeliveryUtilsInterface $deliveryUtils,
  38. CreditUtils $creditUtils,
  39. DocumentUtilsInterface $documentUtils,
  40. MailUtils $mailUtils,
  41. TicketUtils $ticketUtils,
  42. PointLocationUtils $pointLocationUtils,
  43. UtilsProcess $utilsProcess,
  44. SectionUtilsInterface $sectionUtils,
  45. MailjetSmsUtils $mailjetSmsUtils
  46. )
  47. {
  48. $this->utils = $utils ;
  49. $this->userUtils = $userUtils ;
  50. $this->merchantUtils = $merchantUtils ;
  51. $this->productFamilyUtils = $productFamilyUtils ;
  52. $this->orderUtils = $orderUtils ;
  53. $this->priceUtils = $priceUtils ;
  54. $this->deliveryUtils = $deliveryUtils ;
  55. $this->creditUtils = $creditUtils ;
  56. $this->documentUtils = $documentUtils ;
  57. $this->mailUtils = $mailUtils ;
  58. $this->ticketUtils = $ticketUtils ;
  59. $this->pointLocationUtils = $pointLocationUtils ;
  60. $this->utilsProcess = $utilsProcess ;
  61. $this->sectionUtils = $sectionUtils ;
  62. $this->mailjetSmsUtils = $mailjetSmsUtils ;
  63. }
  64. public function getUtils(): Utils
  65. {
  66. return $this->utils ;
  67. }
  68. public function getUserUtils(): UserUtilsInterface
  69. {
  70. return $this->userUtils ;
  71. }
  72. public function getMerchantUtils(): MerchantUtilsInterface
  73. {
  74. return $this->merchantUtils ;
  75. }
  76. public function getProductFamilyUtils(): ProductFamilyUtilsInterface
  77. {
  78. return $this->productFamilyUtils ;
  79. }
  80. public function getOrderUtils(): OrderUtilsInterface
  81. {
  82. return $this->orderUtils ;
  83. }
  84. public function getPriceUtils(): PriceUtilsInterface
  85. {
  86. return $this->priceUtils ;
  87. }
  88. public function getDeliveryUtils(): DeliveryUtilsInterface
  89. {
  90. return $this->deliveryUtils ;
  91. }
  92. public function getCreditUtils(): CreditUtils
  93. {
  94. return $this->creditUtils ;
  95. }
  96. public function getDocumentUtils(): DocumentUtilsInterface
  97. {
  98. return $this->documentUtils ;
  99. }
  100. public function getMailUtils(): MailUtils
  101. {
  102. return $this->mailUtils ;
  103. }
  104. public function getTicketUtils(): TicketUtils
  105. {
  106. return $this->ticketUtils ;
  107. }
  108. public function getPointLocationUtils(): PointLocationUtils
  109. {
  110. return $this->pointLocationUtils ;
  111. }
  112. public function getUtilsProcess(): UtilsProcess
  113. {
  114. return $this->utilsProcess ;
  115. }
  116. public function getSectionUtils(): SectionUtilsInterface
  117. {
  118. return $this->sectionUtils ;
  119. }
  120. public function getMailjetSmsUtils(): MailjetSmsUtils
  121. {
  122. return $this->mailjetSmsUtils ;
  123. }
  124. }