Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Key.php
Go to the documentation of this file.
1 <?php
7 
10 
15 {
19  const KEY_TYPE = 'type';
20  const KEY_VALUE = 'value';
26  public function getType()
27  {
28  return $this->getData(self::KEY_TYPE);
29  }
30 
34  public function getValue()
35  {
36  return $this->getData(self::KEY_VALUE);
37  }
38 
45  public function setType($type)
46  {
47  return $this->setData(self::KEY_TYPE, $type);
48  }
49 
56  public function setValue($value)
57  {
58  return $this->setData(self::KEY_VALUE, $value);
59  }
60 
66  public function getExtensionAttributes()
67  {
68  return $this->_getExtensionAttributes();
69  }
70 
77  public function setExtensionAttributes(\Magento\Tax\Api\Data\TaxClassKeyExtensionInterface $extensionAttributes)
78  {
79  return $this->_setExtensionAttributes($extensionAttributes);
80  }
81 }
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
setExtensionAttributes(\Magento\Tax\Api\Data\TaxClassKeyExtensionInterface $extensionAttributes)
Definition: Key.php:77
$type
Definition: item.phtml:13
$value
Definition: gender.phtml:16