Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

118 lines
3.5KB

  1. <?php
  2. namespace Lc\ShopBundle\Services ;
  3. use Lc\ShopBundle\Context\DeliveryUtilsInterface;
  4. use Lc\ShopBundle\Context\MerchantUtilsInterface;
  5. use Lc\ShopBundle\Context\OrderUtilsInterface;
  6. use Lc\ShopBundle\Context\PriceUtilsInterface;
  7. use Lc\ShopBundle\Context\ProductFamilyUtilsInterface;
  8. use Lc\ShopBundle\Context\Services\StatisticsUtilsInterface;
  9. class UtilsManager
  10. {
  11. protected $utils ;
  12. protected $userUtils ;
  13. protected $merchantUtils ;
  14. protected $productFamilyUtils ;
  15. protected $orderUtils ;
  16. protected $priceUtils ;
  17. protected $deliveryUtils ;
  18. protected $creditUtils ;
  19. protected $documentUtils ;
  20. protected $mailUtils ;
  21. protected $ticketUtils ;
  22. protected $statisticsUtils;
  23. protected $pointLocationUtils ;
  24. public function __construct(
  25. Utils $utils,
  26. UserUtils $userUtils,
  27. MerchantUtilsInterface $merchantUtils,
  28. ProductFamilyUtilsInterface $productFamilyUtils,
  29. OrderUtilsInterface $orderUtils,
  30. PriceUtilsInterface $priceUtils,
  31. DeliveryUtilsInterface $deliveryUtils,
  32. CreditUtils $creditUtils,
  33. DocumentUtils $documentUtils,
  34. MailUtils $mailUtils,
  35. TicketUtils $ticketUtils,
  36. PointLocationUtils $pointLocationUtils
  37. )
  38. {
  39. $this->utils = $utils ;
  40. $this->userUtils = $userUtils ;
  41. $this->merchantUtils = $merchantUtils ;
  42. $this->productFamilyUtils = $productFamilyUtils ;
  43. $this->orderUtils = $orderUtils ;
  44. $this->priceUtils = $priceUtils ;
  45. $this->deliveryUtils = $deliveryUtils ;
  46. $this->creditUtils = $creditUtils ;
  47. $this->documentUtils = $documentUtils ;
  48. $this->mailUtils = $mailUtils ;
  49. $this->ticketUtils = $ticketUtils ;
  50. $this->pointLocationUtils = $pointLocationUtils ;
  51. }
  52. public function getUtils(): Utils
  53. {
  54. return $this->utils ;
  55. }
  56. public function getUserUtils(): UserUtils
  57. {
  58. return $this->userUtils ;
  59. }
  60. public function getMerchantUtils(): MerchantUtilsInterface
  61. {
  62. return $this->merchantUtils ;
  63. }
  64. public function getProductFamilyUtils(): ProductFamilyUtilsInterface
  65. {
  66. return $this->productFamilyUtils ;
  67. }
  68. public function getOrderUtils(): OrderUtilsInterface
  69. {
  70. return $this->orderUtils ;
  71. }
  72. public function getPriceUtils(): PriceUtilsInterface
  73. {
  74. return $this->priceUtils ;
  75. }
  76. public function getDeliveryUtils(): DeliveryUtilsInterface
  77. {
  78. return $this->deliveryUtils ;
  79. }
  80. public function getCreditUtils(): CreditUtils
  81. {
  82. return $this->creditUtils ;
  83. }
  84. public function getDocumentUtils(): DocumentUtils
  85. {
  86. return $this->documentUtils ;
  87. }
  88. public function getMailUtils(): MailUtils
  89. {
  90. return $this->mailUtils ;
  91. }
  92. public function getTicketUtils(): TicketUtils
  93. {
  94. return $this->ticketUtils ;
  95. }
  96. public function getPointLocationUtils(): PointLocationUtils
  97. {
  98. return $this->pointLocationUtils ;
  99. }
  100. }