Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| TaskType | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| buildForm | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Form; |
| 4 | |
| 5 | use Symfony\Component\Form\AbstractType; |
| 6 | use Symfony\Component\Form\Extension\Core\Type\TextType; |
| 7 | use Symfony\Component\Form\FormBuilderInterface; |
| 8 | use Symfony\Component\Form\Extension\Core\Type\TextareaType; |
| 9 | |
| 10 | class TaskType extends AbstractType |
| 11 | { |
| 12 | public function buildForm(FormBuilderInterface $builder, array $options) |
| 13 | { |
| 14 | $builder |
| 15 | ->add('title', TextType::class, ['label' => 'Titre de la tâche']) |
| 16 | ->add('content', TextareaType::class, ['label' => 'Contenu de la tâche']) |
| 17 | ; |
| 18 | } |
| 19 | } |