GuardedLoginForm::buildForm()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 5
rs 10
1
<?php
2
/*
3
 * This file is part of the Guarded Authentication package.
4
 *
5
 * (c) Jafar Jabr <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Jafar\Bundle\GuardedAuthenticationBundle\Form;
12
13
use Symfony\Component\Form\AbstractType;
14
use Symfony\Component\Form\Extension\Core\Type as Types;
15
use Symfony\Component\Form\FormBuilderInterface;
16
17
/**
18
 * Class GuardedLoginForm.
19
 *
20
 * @author Jafar Jabr <[email protected]>
21
 */
22
class GuardedLoginForm extends AbstractType
23
{
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function buildForm(FormBuilderInterface $builder, array $options)
28
    {
29
        $builder
30
            ->add('_username', Types\TextType::class)
31
            ->add('_password', Types\PasswordType::class);
32
    }
33
}
34