Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 13 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
AnalyseQuestionConformiteType | |
0.00% |
0 / 13 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
buildForm | |
0.00% |
0 / 10 |
|
0.00% |
0 / 1 |
2 | |||
configureOptions | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace App\Domain\AIPD\Form\Type; |
6 | |
7 | use App\Domain\AIPD\Model\AnalyseQuestionConformite; |
8 | use Symfony\Component\Form\AbstractType; |
9 | use Symfony\Component\Form\Extension\Core\Type\TextareaType; |
10 | use Symfony\Component\Form\FormBuilderInterface; |
11 | use Symfony\Component\OptionsResolver\OptionsResolver; |
12 | |
13 | class AnalyseQuestionConformiteType extends AbstractType |
14 | { |
15 | public function buildForm(FormBuilderInterface $builder, array $options) |
16 | { |
17 | $builder |
18 | ->add('justificatif', TextareaType::class, [ |
19 | 'required' => false, |
20 | 'attr' => [ |
21 | 'maxlength' => 1000, |
22 | 'rows' => 1, |
23 | 'class' => 'textareaheight', |
24 | ], |
25 | 'purify_html' => true, |
26 | ]); |
27 | } |
28 | |
29 | public function configureOptions(OptionsResolver $resolver) |
30 | { |
31 | $resolver->setDefaults([ |
32 | 'data_class' => AnalyseQuestionConformite::class, |
33 | ]); |
34 | } |
35 | } |