for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Del\Form\Field;
use Del\Form\Renderer\Field\MultiSelectRender;
use Del\Form\Traits\HasOptionsTrait;
class MultiSelect extends FieldAbstract implements ArrayValueInterface
{
use HasOptionsTrait;
public function getTag(): string
return 'select';
}
public function init(): void
$this->setAttribute('type', 'text');
$this->setAttribute('multiple', '');
$this->setAttribute('class', 'form-control');
$this->setRenderer(new MultiSelectRender());