DataInterface.php 580 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\App\Config;
  7. /**
  8. * Configuration data storage
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface DataInterface
  14. {
  15. /**
  16. * Retrieve configuration value by path
  17. *
  18. * @param string|null $path
  19. * @return mixed
  20. */
  21. public function getValue($path);
  22. /**
  23. * Set configuration value by path
  24. *
  25. * @param string $path
  26. * @param mixed $value
  27. * @return void
  28. */
  29. public function setValue($path, $value);
  30. }