DataInterface.php 564 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Config;
  7. /**
  8. * Config data interface.
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface DataInterface
  14. {
  15. /**
  16. * Merge config data to the object
  17. *
  18. * @param array $config
  19. * @return void
  20. */
  21. public function merge(array $config);
  22. /**
  23. * Get config value by key
  24. *
  25. * @param string $key
  26. * @param mixed $default
  27. * @return mixed
  28. */
  29. public function get($key, $default = null);
  30. }