for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace kalanis\kw_forms\Controls;
/**
* Class Text
* @package kalanis\kw_forms\Controls
* Form element for text
*/
class Text extends AControl
{
protected string $templateInput = '<input type="text" value="%1$s"%2$s />%3$s';
* @param string $alias
* @param string|int|float|null $value
* @param string $label
* @return $this
public function set(string $alias, $value = null, string $label = ''): self
$this->setEntry($alias, $value, $label);
$this->setAttribute('id', $this->getKey());
return $this;
}