Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
9 / 9 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
PiloteType | |
100.00% |
9 / 9 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
buildForm | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
configureOptions | |
100.00% |
7 / 7 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | namespace App\Domain\Registry\Form\Type\ConformiteOrganisation; |
4 | |
5 | use App\Domain\Registry\Model\ConformiteOrganisation\Conformite; |
6 | use Symfony\Component\Form\AbstractType; |
7 | use Symfony\Component\Form\Extension\Core\Type\TextType; |
8 | use Symfony\Component\Form\FormBuilderInterface; |
9 | use Symfony\Component\OptionsResolver\OptionsResolver; |
10 | |
11 | class PiloteType extends AbstractType |
12 | { |
13 | public function buildForm(FormBuilderInterface $builder, array $options) |
14 | { |
15 | $builder |
16 | ->add('pilote', TextType::class, ['purify_html' => true]); |
17 | } |
18 | |
19 | public function configureOptions(OptionsResolver $resolver) |
20 | { |
21 | $resolver |
22 | ->setDefaults([ |
23 | 'data_class' => Conformite::class, |
24 | 'validation_groups' => [ |
25 | 'default', |
26 | ], |
27 | ]); |
28 | } |
29 | } |