ApplicationType   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 6
dl 0
loc 15
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A buildForm() 0 5 1
A configureOptions() 0 4 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