for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of slick/form package
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Slick\Form\Input;
use Slick\Form\InputInterface;
use Slick\Form\Renderer\TextArea as AreaRenderer;
* Text Area input
* @package Slick\Form\Input
* @author Filipe Silva <[email protected]>
class TextArea extends AbstractInput implements InputInterface
{
* @var string Renderer class
protected $rendererClass = AreaRenderer::class;
* Adds the value to the select
* Mainly it removes the entry in the attributes list
* @param mixed $value
* @return $this|self|Select
public function setValue($value)
parent::setValue($value);
if ($this->hasAttribute('value')) {
$this->getAttributes()->remove('value');
}
return $this;