ConfigInterface.php 970 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * Default application path for backend area
  4. *
  5. * Copyright © Magento, Inc. All rights reserved.
  6. * See COPYING.txt for license details.
  7. */
  8. namespace Magento\Backend\App;
  9. /**
  10. * Backend config accessor
  11. * @api
  12. * @since 100.0.2
  13. */
  14. interface ConfigInterface
  15. {
  16. /**
  17. * Retrieve config value by path
  18. *
  19. * Path should looks like keys imploded by "/". For example scopes/stores/admin
  20. *
  21. * @param string $path
  22. * @return mixed
  23. * @api
  24. */
  25. public function getValue($path);
  26. /**
  27. * Set config value
  28. *
  29. * @deprecated 100.1.2
  30. * @param string $path
  31. * @param mixed $value
  32. * @return void
  33. * @api
  34. */
  35. public function setValue($path, $value);
  36. /**
  37. * Retrieve config flag
  38. *
  39. * Path should looks like keys imploded by "/". For example scopes/stores/admin
  40. *
  41. * @param string $path
  42. * @return bool
  43. * @api
  44. */
  45. public function isSetFlag($path);
  46. }