SpecificationType::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
/**
4
 * @author Rafał Muszyński <[email protected]>
5
 * @copyright 2013 Sourcefabric o.p.s.
6
 * @license http://www.gnu.org/licenses/gpl-3.0.txt
7
 */
8
9
namespace Newscoop\PaywallBundle\Form\Type;
10
11
use Symfony\Component\Form\AbstractType;
12
use Symfony\Component\Form\FormBuilderInterface;
13
14
class SpecificationType extends AbstractType
15
{
16
    public function buildForm(FormBuilderInterface $builder, array $options)
17
    {
18
        $builder
19
        ->add('publication', 'integer', array(
20
            'required' => true,
21
        ))
22
        ->add('issue', 'integer', array(
23
            'required' => false,
24
        ))
25
        ->add('section', 'integer', array(
26
            'required' => false,
27
        ))
28
        ->add('article', 'integer', array(
29
            'required' => false,
30
        ));
31
    }
32
33
    public function getName()
34
    {
35
        return 'specificationForm';
36
    }
37
}
38