for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace WebTheory\Saveyour\Field\Type\Abstracts;
use WebTheory\Saveyour\Contracts\Field\FormFieldInterface;
abstract class AbstractInput extends AbstractStandardFormControl implements FormFieldInterface
{
protected string $type = 'text';
protected ?string $dataList = null;
/**
* Get the value of type
*
* @return string
*/
public function getType(): string
return $this->type;
}
* @return $this
protected function resolveAttributes(): AbstractInput
parent::resolveAttributes()
->addAttribute('type', $this->type)
->addAttribute('value', $this->value)
->addAttribute('datalist', $this->dataList);
return $this;
protected function renderHtmlMarkup(): string
return $this->open('input', $this->attributes);