AttributeInterface.php 909 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Api;
  7. /**
  8. * Interface for custom attribute value.
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface AttributeInterface
  14. {
  15. /**#@+
  16. * Constant used as key into $_data
  17. */
  18. const ATTRIBUTE_CODE = 'attribute_code';
  19. const VALUE = 'value';
  20. /**#@-*/
  21. /**
  22. * Get attribute code
  23. *
  24. * @return string
  25. */
  26. public function getAttributeCode();
  27. /**
  28. * Set attribute code
  29. *
  30. * @param string $attributeCode
  31. * @return $this
  32. */
  33. public function setAttributeCode($attributeCode);
  34. /**
  35. * Get attribute value
  36. *
  37. * @return mixed
  38. */
  39. public function getValue();
  40. /**
  41. * Set attribute value
  42. *
  43. * @param mixed $value
  44. * @return $this
  45. */
  46. public function setValue($value);
  47. }