ApplicationType::configureOptions()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace App\Form;
4
5
use App\Entity\Application;
6
use Symfony\Component\Form\AbstractType;
7
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
8
use Symfony\Component\Form\FormBuilderInterface;
9
use Symfony\Component\OptionsResolver\OptionsResolver;
10
11
class ApplicationType extends AbstractType
12
{
13
    public function buildForm(FormBuilderInterface $builder, array $options)
14
    {
15
        $builder
16
            ->add('content', TextareaType::class, [
17
                'label' => 'Candidature',
18
            ])
19
        ;
20
    }
21
22
    public function configureOptions(OptionsResolver $resolver)
23
    {
24
        $resolver->setDefaults([
25
            'data_class' => Application::class,
26
        ]);
27
    }
28
}
29