Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ProductType.php
Go to the documentation of this file.
1 <?php
8 namespace Magento\Catalog\Model;
9 
11 
16 {
20  const KEY_NAME = 'name';
21  const KEY_LABEL = 'label';
27  public function getName()
28  {
29  return $this->_get(self::KEY_NAME);
30  }
31 
35  public function getLabel()
36  {
37  return $this->_get(self::KEY_LABEL);
38  }
39 
46  public function setName($name)
47  {
48  return $this->setData(self::KEY_NAME, $name);
49  }
50 
57  public function setLabel($label)
58  {
59  return $this->setData(self::KEY_LABEL, $label);
60  }
61 
67  public function getExtensionAttributes()
68  {
69  return $this->_getExtensionAttributes();
70  }
71 
78  public function setExtensionAttributes(
79  \Magento\Catalog\Api\Data\ProductTypeExtensionInterface $extensionAttributes
80  ) {
81  return $this->_setExtensionAttributes($extensionAttributes);
82  }
83 }
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
$label
Definition: details.phtml:21
$extensionAttributes
Definition: payment.php:22
setExtensionAttributes(\Magento\Catalog\Api\Data\ProductTypeExtensionInterface $extensionAttributes)
Definition: ProductType.php:78
if(!isset($_GET['name'])) $name
Definition: log.php:14