for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Enjoys\Forms\Elements;
use Enjoys\Forms\Element;
/**
* Class Html
* @package Enjoys\Forms\Elements
*/
class Html extends Element
{
public function __construct(string $title)
parent::__construct(\uniqid('html'), $title);
$this->setLabel($title);
$this->removeAttribute('name');
$this->removeAttribute('id');
}
public function baseHtml(): string
return $this->getLabel() ?? '';