Completed
Push — master ( b453a3...b1e9d6 )
by Ruud
40:05 queued 27:14
created

LinePagePartAdminType::buildForm()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 1
1
<?php
2
3
namespace Kunstmaan\PagePartBundle\Form;
4
5
use Symfony\Component\Form\AbstractType;
6
use Symfony\Component\Form\FormBuilderInterface;
7
use Symfony\Component\OptionsResolver\OptionsResolver;
8
9
/**
10
 * LinePagePartAdminType
11
 */
12
class LinePagePartAdminType extends AbstractType
13
{
14
    /**
15
     * @param \Symfony\Component\Form\FormBuilderInterface $builder
16
     * @param array                                        $options
17
     */
18 1
    public function buildForm(FormBuilderInterface $builder, array $options)
19
    {
20 1
    }
21
22
    /**
23
     * @return string
24
     */
25
    public function getBlockPrefix()
26
    {
27
        return 'kunstmaan_pagepartbundle_linepageparttype';
28
    }
29
30
    /**
31
     * @param \Symfony\Component\OptionsResolver\OptionsResolver $resolver
32
     */
33 1
    public function configureOptions(OptionsResolver $resolver)
34
    {
35 1
        $resolver->setDefaults(
36
          array(
37 1
            'data_class' => 'Kunstmaan\PagePartBundle\Entity\LinePagePart',
38
          )
39
        );
40 1
    }
41
}
42