<?php

namespace App\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\IntegerType;
use Symfony\Component\Form\FormBuilderInterface;

class OsmoseToolType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options): void
    {
        $builder
            ->add('item', IntegerType::class, [
                'label' => 'field.osmose_tool.item',
                'help_html' => true,
                'help' => 'field.osmose_tool.item_help',
            ])
            ->add('source', IntegerType::class, [
                'label' => 'field.osmose_tool.source',
            ])
            ->add('class', IntegerType::class, [
                'label' => 'field.osmose_tool.class',
            ])
            ->add('limit', IntegerType::class, [
                'label' => 'field.osmose_tool.limit',
                'help' => 'field.osmose_tool.limit_help',
            ])
            ->add('group_by_city', CheckboxType::class, [
                'label' => 'field.osmose_tool.group_by_city',
                'required' => false,
            ])
        ;
    }
}
