DeleteType::configureOptions()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 5
ccs 3
cts 3
cp 1
crap 1
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace LAG\AdminBundle\Form\Type;
6
7
use Symfony\Component\Form\AbstractType;
8
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
9
use Symfony\Component\Form\FormBuilderInterface;
10
use Symfony\Component\OptionsResolver\OptionsResolver;
11
12
class DeleteType extends AbstractType
13
{
14 1
    public function buildForm(FormBuilderInterface $builder, array $options)
15
    {
16
        $builder
17 1
            ->add('id', HiddenType::class)
18
        ;
19 1
    }
20
21 1
    public function configureOptions(OptionsResolver $resolver)
22
    {
23
        $resolver
24 1
            ->setDefaults([
25 1
                'label' => false,
26
            ])
27
        ;
28 1
    }
29
}
30