ValueInterface.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * Value interface
  4. *
  5. * Copyright © Magento, Inc. All rights reserved.
  6. * See COPYING.txt for license details.
  7. */
  8. namespace Magento\Framework\App\Config;
  9. /**
  10. * Interface \Magento\Framework\App\Config\ValueInterface
  11. *
  12. * This interface cannot be marked as API since doesn't fit developers' needs of extensibility. In 2.4 we are going
  13. * to introduce a new interface which should cover all needs and deprecate the this one with the model
  14. * {@see \Magento\Framework\App\Config\Value}
  15. */
  16. interface ValueInterface
  17. {
  18. /**
  19. * Table name
  20. *
  21. * @deprecated since it is not used
  22. */
  23. const ENTITY = 'config_data';
  24. /**
  25. * Check if config data value was changed
  26. *
  27. * @todo this method should be make as protected
  28. * @return bool
  29. */
  30. public function isValueChanged();
  31. /**
  32. * Get old value from existing config
  33. *
  34. * @return string
  35. */
  36. public function getOldValue();
  37. /**
  38. * Get value by key for new user data from <section>/groups/<group>/fields/<field>
  39. *
  40. * @param string $key
  41. * @return string
  42. */
  43. public function getFieldsetDataValue($key);
  44. }