RegistrationForm   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
eloc 8
c 2
b 0
f 0
dl 0
loc 16
ccs 0
cts 8
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configureOptions() 0 6 1
A buildForm() 0 5 1
1
<?php
2
3
namespace Obblm\Core\Form\Security;
4
5
use Obblm\Core\Entity\Coach;
6
use Obblm\Core\Form\Coach\BaseUserConfirmType;
7
use Symfony\Component\Form\FormBuilderInterface;
8
use Symfony\Component\OptionsResolver\OptionsResolver;
9
10
class RegistrationForm extends BaseUserConfirmType
11
{
12
    public function buildForm(FormBuilderInterface $builder, array $options)
13
    {
14
        parent::buildForm($builder, $options);
15
        $builder
16
            ->add('username')
17
        ;
18
    }
19
20
    public function configureOptions(OptionsResolver $resolver)
21
    {
22
        parent::configureOptions($resolver);
23
        $resolver->setDefaults(array(
24
            'translation_domain' => 'obblm',
25
            'data_class' => Coach::class,
26
        ));
27
    }
28
}
29