TocPagePartAdminType::getBlockPrefix()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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
 * TocPagePartAdminType
11
 */
12
class TocPagePartAdminType 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_tocpageparttype';
28
    }
29
30
    /**
31
     * @param \Symfony\Component\OptionsResolver\OptionsResolver $resolver
32
     */
33 1
    public function configureOptions(OptionsResolver $resolver)
34
    {
35 1
        $resolver->setDefaults(array(
36 1
            'data_class' => 'Kunstmaan\PagePartBundle\Entity\TocPagePart',
37
        ));
38 1
    }
39
}
40