Test Failed
Push — master ( 810670...0a801e )
by Martin
02:32
created

CreateTaskForm::buildForm()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 2
1
<?php
2
/**
3
 * File: CreateTaskForm.php - todo
4
 * zzz - 04/02/17 10:58
5
 * PHP Version 7
6
 *
7
 * @category None
8
 * @package  Todo
9
 * @author   Martin Pham <[email protected]>
10
 * @license  None http://
11
 * @link     None
12
 */
13
14
namespace Todo\Web\FrontendBundle\Form;
15
16
use Symfony\Component\Form\AbstractType;
17
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
18
use Symfony\Component\Form\FormBuilderInterface;
19
20
21
/**
22
 * Class CreateTaskForm
23
 *
24
 * @category None
25
 * @package  Todo\Web\FrontendBundle\Form
26
 * @author   Martin Pham <[email protected]>
27
 * @license  None http://
28
 * @link     None
29
 */
30
class CreateTaskForm extends AbstractType
31
{
32
    /**
33
     * Build Form
34
     *
35
     * @param FormBuilderInterface $builder Form builder
36
     * @param array                $options Options
37
     *
38
     * @return void
39
     */
40
    public function buildForm(FormBuilderInterface $builder, array $options)
41
    {
42
        $builder
43
            ->add('name')
44
            ->add('submit', SubmitType::class);
45
    }
46
}
47