Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Option.php
Go to the documentation of this file.
1 <?php
10 
16 {
22  public function getLabel()
23  {
24  return $this->_get(self::LABEL);
25  }
26 
32  public function getValue()
33  {
34  return $this->_get(self::VALUE);
35  }
36 
42  public function getOptions()
43  {
44  return $this->_get(self::OPTIONS);
45  }
46 
53  public function setLabel($label)
54  {
55  return $this->setData(self::LABEL, $label);
56  }
57 
64  public function setValue($value)
65  {
66  return $this->setData(self::VALUE, $value);
67  }
68 
75  public function setOptions(array $options = null)
76  {
77  return $this->setData(self::OPTIONS, $options);
78  }
79 }
setOptions(array $options=null)
Definition: Option.php:75
$label
Definition: details.phtml:21
$value
Definition: gender.phtml:16