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

TocPagePartAdminType   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 75%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 2
dl 0
loc 28
ccs 6
cts 8
cp 0.75
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getBlockPrefix() 0 4 1
A configureOptions() 0 6 1
A buildForm() 0 3 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
 * 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