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\Element;
use Slick\Form\ElementInterface;
use Slick\Form\Renderer\Label as LabelRenderer;
* HTML Label element
* @package Slick\Form\Element
* @author Filipe Silva <[email protected]>
class Label extends AbstractElement implements ElementInterface
{
* @var string Renderer class
protected $rendererClass = LabelRenderer::class;
* Label constructor.
* @param string $inputId
* @param string $value
public function __construct($inputId, $value)
$this->setValue($value);
$this->getAttributes()->set('for', $inputId);
}