Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

99 rindas
2.9KB

  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. class UtilsManager
  9. {
  10. protected $utils ;
  11. protected $userUtils ;
  12. protected $merchantUtils ;
  13. protected $productFamilyUtils ;
  14. protected $orderUtils ;
  15. protected $priceUtils ;
  16. protected $deliveryUtils ;
  17. protected $creditUtils ;
  18. protected $documentUtils ;
  19. protected $mailUtils ;
  20. public function __construct(
  21. Utils $utils,
  22. UserUtils $userUtils,
  23. MerchantUtilsInterface $merchantUtils,
  24. ProductFamilyUtilsInterface $productFamilyUtils,
  25. OrderUtilsInterface $orderUtils,
  26. PriceUtilsInterface $priceUtils,
  27. DeliveryUtilsInterface $deliveryUtils,
  28. CreditUtils $creditUtils,
  29. DocumentUtils $documentUtils,
  30. MailUtils $mailUtils
  31. )
  32. {
  33. $this->utils = $utils ;
  34. $this->userUtils = $userUtils ;
  35. $this->merchantUtils = $merchantUtils ;
  36. $this->productFamilyUtils = $productFamilyUtils ;
  37. $this->orderUtils = $orderUtils ;
  38. $this->priceUtils = $priceUtils ;
  39. $this->deliveryUtils = $deliveryUtils ;
  40. $this->creditUtils = $creditUtils ;
  41. $this->documentUtils = $documentUtils ;
  42. $this->mailUtils = $mailUtils ;
  43. }
  44. public function getUtils(): Utils
  45. {
  46. return $this->utils ;
  47. }
  48. public function getUserUtils(): UserUtils
  49. {
  50. return $this->userUtils ;
  51. }
  52. public function getMerchantUtils(): MerchantUtilsInterface
  53. {
  54. return $this->merchantUtils ;
  55. }
  56. public function getProductFamilyUtils(): ProductFamilyUtilsInterface
  57. {
  58. return $this->productFamilyUtils ;
  59. }
  60. public function getOrderUtils(): OrderUtilsInterface
  61. {
  62. return $this->orderUtils ;
  63. }
  64. public function getPriceUtils(): PriceUtilsInterface
  65. {
  66. return $this->priceUtils ;
  67. }
  68. public function getDeliveryUtils(): DeliveryUtilsInterface
  69. {
  70. return $this->deliveryUtils ;
  71. }
  72. public function getCreditUtils(): CreditUtils
  73. {
  74. return $this->creditUtils ;
  75. }
  76. public function getDocumentUtils(): DocumentUtils
  77. {
  78. return $this->documentUtils ;
  79. }
  80. public function getMailUtils(): MailUtils
  81. {
  82. return $this->mailUtils ;
  83. }
  84. }