KeyValueObjectInterface.php 775 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\DataObject;
  7. /**
  8. * Interface \Magento\Framework\DataObject\KeyValueObjectInterface
  9. *
  10. */
  11. interface KeyValueObjectInterface
  12. {
  13. const KEY = 'key';
  14. const VALUE = 'value';
  15. /**
  16. * Get object key
  17. *
  18. * @return string
  19. */
  20. public function getKey();
  21. /**
  22. * Set object key
  23. *
  24. * @param string $key
  25. * @return $this
  26. */
  27. public function setKey($key);
  28. /**
  29. * Get object value
  30. *
  31. * @return string
  32. */
  33. public function getValue();
  34. /**
  35. * Set object value
  36. *
  37. * @param string $value
  38. * @return $this
  39. */
  40. public function setValue($value);
  41. }