RegistrationForm::buildForm()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 5
ccs 0
cts 3
cp 0
rs 10
cc 1
nc 1
nop 2
crap 2
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