Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Parameter.php
Go to the documentation of this file.
1 <?php
7 
18 class Parameter
19 {
25  protected $_value = null;
26 
35  protected $_isBlob = false;
36 
41  protected $_dataType = null;
42 
47  protected $_length = null;
48 
53  protected $_driverOptions = null;
54 
59  protected $_additional = null;
60 
66  public function __construct($value)
67  {
68  $this->_value = $value;
69  $this->_additional = new \Magento\Framework\DataObject();
70  return $this;
71  }
72 
79  public function setValue($value)
80  {
81  $this->_value = $value;
82  return $this;
83  }
84 
90  public function getValue()
91  {
92  return $this->_value;
93  }
94 
105  public function setIsBlob($isBlob)
106  {
107  $this->_isBlob = $isBlob;
108  return $this;
109  }
110 
120  public function getIsBlob()
121  {
122  return $this->_isBlob;
123  }
124 
131  public function setDataType($dataType)
132  {
133  $this->_dataType = $dataType;
134  return $this;
135  }
136 
142  public function getDataType()
143  {
144  return $this->_dataType;
145  }
146 
153  public function setLength($length)
154  {
155  $this->_length = $length;
156  return $this;
157  }
158 
164  public function getLength()
165  {
166  return $this->_length;
167  }
168 
175  public function setDriverOptions($driverOptions)
176  {
177  $this->_driverOptions = $driverOptions;
178  return $this;
179  }
180 
186  public function getDriverOptions()
187  {
188  return $this->_driverOptions;
189  }
190 
198  public function setAdditional($additional)
199  {
200  $this->_additional = $additional;
201  return $this;
202  }
203 
209  public function getAdditional()
210  {
211  return $this->_additional;
212  }
213 
219  public function __toString()
220  {
221  return (string)$this->_value;
222  }
223 
229  public function toString()
230  {
231  return $this->__toString();
232  }
233 }
$value
Definition: gender.phtml:16