Configuration::getConfigTreeBuilder()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 10
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 15
ccs 10
cts 10
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 11
nc 1
nop 0
crap 1
1
<?php
2
3
namespace SumoCoders\FrameworkErrorBundle\DependencyInjection;
4
5
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
6
use Symfony\Component\Config\Definition\ConfigurationInterface;
7
8
class Configuration implements ConfigurationInterface
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13 2
    public function getConfigTreeBuilder()
14
    {
15 2
        $treeBuilder = new TreeBuilder();
16 2
        $rootNode = $treeBuilder->root('sumo_coders_framework_error');
17
18
        $rootNode
19 2
            ->children()
20 2
                ->arrayNode('show_messages_for')
21 2
                    ->prototype('scalar')
22 2
                    ->end()
23 2
                ->end()
24 2
            ->end();
25
26 2
        return $treeBuilder;
27
    }
28
}
29