Configuration   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 18
c 1
b 0
f 0
dl 0
loc 24
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfigTreeBuilder() 0 22 1
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('rapido');
13
14
        $treeBuilder->getRootNode()
15
            ->children()
16
                ->scalarNode('table_name_prefix')
17
                    ->defaultValue('read_model_')
18
                ->end()
19
                ->scalarNode('table_name_suffix')
20
                    ->defaultValue('_snapshot')
21
                ->end()
22
                ->scalarNode('id_column_name')
23
                    ->defaultValue('id')
24
                ->end()
25
                ->scalarNode('database_connection')
26
                    ->defaultValue('database_connection')
27
                ->end()
28
            ->end()
29
        ;
30
31
        return $treeBuilder;
32
    }
33
}
34