FixType::getBlockPrefix()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace KI\ClubinfoBundle\Form;
4
5
use KI\ClubinfoBundle\Entity\Fix;
6
use Symfony\Component\Form\AbstractType;
7
use Symfony\Component\Form\FormBuilderInterface;
8
9
use Symfony\Component\OptionsResolver\OptionsResolver;
10
11
class FixType extends AbstractType
12
{
13
    public function buildForm(FormBuilderInterface $builder, array $options)
14
    {
15
        $builder
16
            ->add('name')
17
            ->add('problem')
18
            ->add('fix')
19
            ->add('status', null, [
20
                'empty_data' => 'En attente'
21
            ])
22
        ;
23
    }
24
25
    public function configureOptions(OptionsResolver $resolver)
26
    {
27
        $resolver->setDefaults([
28
            'data_class'      => Fix::class,
29
            'csrf_protection' => false
30
        ]);
31
    }
32
33
    public function getBlockPrefix()
34
    {
35
        return '';
36
    }
37
}
38