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.2KB

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