src/Fields/Radio.php
<?php
namespace Grafite\Forms\Fields;
use Grafite\Forms\Fields\Field;
class Radio extends Field
{
protected static function getType()
{
return 'radio';
}
protected static function getAttributes()
{
return [
'class' => 'form-check-input'
];
}
protected static function getFactory()
{
return 'boolean';
}
}