MetadataObjectInterface.php 549 B

12345678910111213141516171819202122232425262728293031
  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. * Provides metadata about an attribute.
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface MetadataObjectInterface
  14. {
  15. /**
  16. * Retrieve code of the attribute.
  17. *
  18. * @return string
  19. */
  20. public function getAttributeCode();
  21. /**
  22. * Set code of the attribute.
  23. *
  24. * @param string $attributeCode
  25. * @return $this
  26. */
  27. public function setAttributeCode($attributeCode);
  28. }