Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
FakeAttributeMetadata.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
15 {
19  public function getAttributeCode()
20  {
21  return $this->_get(self::ATTRIBUTE_CODE);
22  }
23 
27  public function getStoreLabel()
28  {
29  return $this->_get(self::STORE_LABEL);
30  }
31 
35  public function getFrontendLabel()
36  {
37  return $this->_get(self::FRONTEND_LABEL);
38  }
39 
43  public function getNote()
44  {
45  return $this->_get(self::NOTE);
46  }
47 
55  {
56  return $this->setData(self::ATTRIBUTE_CODE, $attributeCode);
57  }
58 
65  public function setStoreLabel($storeLabel)
66  {
67  return $this->setData(self::STORE_LABEL, $storeLabel);
68  }
69 
76  public function setFrontendLabel($frontendLabel)
77  {
78  return $this->setData(self::FRONTEND_LABEL, $frontendLabel);
79  }
80 
87  public function setNote($note)
88  {
89  return $this->setData(self::NOTE, $note);
90  }
91 }
$attributeCode
Definition: extend.phtml:12
$note
Definition: element.phtml:13