ScopeDefault.php 923 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. * Class ScopeDefault
  9. */
  10. class ScopeDefault implements ScopeInterface
  11. {
  12. /**
  13. * Retrieve scope code
  14. *
  15. * @return string
  16. */
  17. public function getCode()
  18. {
  19. return '';
  20. }
  21. /**
  22. * Get scope identifier
  23. *
  24. * @return int
  25. */
  26. public function getId()
  27. {
  28. return 0;
  29. }
  30. /**
  31. * Get scope type
  32. *
  33. * @return string
  34. */
  35. public function getScopeType()
  36. {
  37. return self::SCOPE_DEFAULT;
  38. }
  39. /**
  40. * Get scope type name
  41. *
  42. * @return string
  43. */
  44. public function getScopeTypeName()
  45. {
  46. return 'Default Scope';
  47. }
  48. /**
  49. * Get scope name
  50. *
  51. * @return string
  52. */
  53. public function getName()
  54. {
  55. return 'Default';
  56. }
  57. }