for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace WebTheory\Saveyour\Field\Type;
use WebTheory\Saveyour\Contracts\Field\FormFieldInterface;
use WebTheory\Saveyour\Field\Type\Abstracts\AbstractStandardFormControl;
class Textarea extends AbstractStandardFormControl implements FormFieldInterface
{
public ?int $rows = null;
/**
* Get the value of rows
*
* @return int
*/
public function getRows(): int
return $this->rows;
return $this->rows
null
integer
}
* Set the value of rows
* @param int $rows
* @return $this
public function setRows(int $rows): Textarea
$this->rows = $rows;
return $this;
protected function resolveAttributes(): Textarea
parent::resolveAttributes()
->addAttribute('rows', $this->rows);
protected function renderHtmlMarkup(): string
return $this->tag('textarea', $this->attributes, $this->value);