ParameterType   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 10
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A buildForm() 0 8 1
1
<?php
2
3
/*
4
 * This file is part of the SaasProviderBundle package.
5
 * (c) Fluxter <http://fluxter.net/>
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Fluxter\SaasProviderBundle\Form;
11
12
use Symfony\Component\Form\AbstractType;
13
use Symfony\Component\Form\Extension\Core\Type\TextType;
14
15
class ParameterType extends AbstractType
16
{
17
    public function buildForm(\Symfony\Component\Form\FormBuilderInterface $builder, array $options)
18
    {
19
        $builder
20
            ->add('name', TextType::class, [
21
                'required' => true,
22
            ])
23
            ->add('value', TextType::class, [
24
                'required' => true,
25
            ]);
26
    }
27
}
28