Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Data Fields
AttributeInterface Interface Reference
Inheritance diagram for AttributeInterface:
AttributeValue

Public Member Functions

 getAttributeCode ()
 
 setAttributeCode ($attributeCode)
 
 getValue ()
 
 setValue ($value)
 

Data Fields

const ATTRIBUTE_CODE = 'attribute_code'
 
const VALUE = 'value'
 

Detailed Description

Interface for custom attribute value.

@api

Since
100.0.2

Definition at line 15 of file AttributeInterface.php.

Member Function Documentation

◆ getAttributeCode()

getAttributeCode ( )

#- Get attribute code

Returns
string

Implemented in AttributeValue.

◆ getValue()

getValue ( )

Get attribute value

Returns
mixed

Implemented in AttributeValue.

◆ setAttributeCode()

setAttributeCode (   $attributeCode)

Set attribute code

Parameters
string$attributeCode
Returns
$this

Implemented in AttributeValue.

◆ setValue()

setValue (   $value)

Set attribute value

Parameters
mixed$value
Returns
$this

Implemented in AttributeValue.

Field Documentation

◆ ATTRIBUTE_CODE

const ATTRIBUTE_CODE = 'attribute_code'

#+ Constant used as key into $_data

Definition at line 20 of file AttributeInterface.php.

◆ VALUE

const VALUE = 'value'

Definition at line 21 of file AttributeInterface.php.


The documentation for this interface was generated from the following file: