ScopeInterface.php 877 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\App;
  7. /**
  8. * @api
  9. * @since 100.0.2
  10. */
  11. interface ScopeInterface
  12. {
  13. /**
  14. * Default scope reference code
  15. */
  16. const SCOPE_DEFAULT = 'default';
  17. /**
  18. * Retrieve scope code
  19. *
  20. * @return string
  21. */
  22. public function getCode();
  23. /**
  24. * Get scope identifier
  25. *
  26. * @return int
  27. */
  28. public function getId();
  29. /**
  30. * Get scope type
  31. *
  32. * @return string
  33. * @since 100.1.0
  34. */
  35. public function getScopeType();
  36. /**
  37. * Get scope type name
  38. *
  39. * @return string
  40. * @since 100.1.0
  41. */
  42. public function getScopeTypeName();
  43. /**
  44. * Get scope name
  45. *
  46. * @return string
  47. * @since 100.1.0
  48. */
  49. public function getName();
  50. }