Support.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\ViewModel\Account;
  6. use Magento\Framework\View\Element\Block\ArgumentInterface;
  7. use Temando\Shipping\Model\Config\ModuleConfigInterface;
  8. /**
  9. * View model for account support details.
  10. *
  11. * @package Temando\Shipping\ViewModel
  12. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  13. * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  14. * @link https://www.temando.com/
  15. */
  16. class Support implements ArgumentInterface
  17. {
  18. /**
  19. * @var ModuleConfigInterface
  20. */
  21. private $moduleConfig;
  22. /**
  23. * Support constructor.
  24. * @param ModuleConfigInterface $moduleConfig
  25. */
  26. public function __construct(ModuleConfigInterface $moduleConfig)
  27. {
  28. $this->moduleConfig = $moduleConfig;
  29. }
  30. /**
  31. * @return string
  32. */
  33. public function getShippingPortalUrl()
  34. {
  35. return $this->moduleConfig->getShippingPortalUrl();
  36. }
  37. }