| Total Complexity | 4 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class TextType extends GeneralType |
||
| 6 | {
|
||
| 7 | protected $dataType = 'text'; |
||
| 8 | protected $formType = 'text'; |
||
| 9 | protected $validationRule = 'string'; |
||
| 10 | |||
| 11 | public function getFormOptions() {
|
||
| 12 | $options = ""; |
||
| 13 | $options .= $this->isRequired() ? 'required="required" ' : ''; |
||
| 14 | $options .='rows="'.$this->getTextRows().'" '; |
||
| 15 | return $options; |
||
| 16 | } |
||
| 17 | |||
| 18 | public function getTextRows() {
|
||
| 23 | } |
||
| 24 | } |
||
| 25 |