Your IP : 127.0.0.1
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\Api;
/**
* Base data object for custom attribute metadata
*/
class AttributeMetadata extends AbstractSimpleObject implements MetadataObjectInterface
{
const ATTRIBUTE_CODE = 'attribute_code';
/**
* Retrieve code of the attribute.
*
* @return string|null
*/
public function getAttributeCode()
{
return $this->_get(self::ATTRIBUTE_CODE);
}
/**
* Set code of the attribute.
*
* @param string $attributeCode
* @return $this
*/
public function setAttributeCode($attributeCode)
{
return $this->setData(self::ATTRIBUTE_CODE, $attributeCode);
}
}