Passed
Push — master ( 7815e3...d45a7a )
by Pieter
04:53
created

Configuration::getConfigTreeBuilder()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 12
nc 1
nop 0
dl 0
loc 17
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Avoran\RapidoBundle\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
    public function getConfigTreeBuilder()
11
    {
12
        $treeBuilder = new TreeBuilder();
13
        $rootNode = $treeBuilder->root('rapido');
14
15
        $rootNode
16
            ->children()
17
                ->scalarNode('table_name_prefix')
18
                    ->defaultValue('read_model_')
19
                ->end()
20
                ->scalarNode('id_column_name')
21
                    ->defaultValue('id')
22
                ->end()
23
            ->end()
24
        ;
25
26
        return $treeBuilder;
27
    }
28
}
29