ScopeResolverInterface.php 540 B

123456789101112131415161718192021222324252627
  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. * Scopes provider
  9. */
  10. interface ScopeResolverInterface
  11. {
  12. /**
  13. * Retrieve application scope object
  14. *
  15. * @param null|int $scopeId
  16. * @return \Magento\Framework\App\ScopeInterface
  17. */
  18. public function getScope($scopeId = null);
  19. /**
  20. * Retrieve scopes array
  21. *
  22. * @return \Magento\Framework\App\ScopeInterface[]
  23. */
  24. public function getScopes();
  25. }