ScopeInterface.php 667 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Url;
  7. /**
  8. * This ScopeInterface adds URL methods to the scope interface to help
  9. * determine scope based on URLs.
  10. *
  11. * @api
  12. * @since 100.0.2
  13. */
  14. interface ScopeInterface extends \Magento\Framework\App\ScopeInterface
  15. {
  16. /**
  17. * Retrieve base URL
  18. *
  19. * @param string $type
  20. * @param boolean|null $secure
  21. * @return string
  22. */
  23. public function getBaseUrl($type = '', $secure = null);
  24. /**
  25. * Check is URL should be secure
  26. *
  27. * @return boolean
  28. */
  29. public function isUrlSecure();
  30. }