for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Fiv\Form\Element;
use Fiv\Form\FormData;
/**
* Generate <textarea></textarea> html tag
*
* @author Ivan Shcherbak <[email protected]>
*/
class TextArea extends BaseElement {
* @return string
public function render() {
return '<textarea ' . Html::renderAttributes($this->getAttributes()) . '>' . $this->getValue() . '</textarea>';
}
* @inheritdoc
public function handle(FormData $data) {
$this->setValue($data->get($this->getName()));
return $this;