Completed
Push — master ( d72a06...ba0ad0 )
by GBProd
04:38
created

Configuration   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 1
c 3
b 0
f 0
lcom 0
cbo 3
dl 0
loc 24
ccs 11
cts 11
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfigTreeBuilder() 0 18 1
1
<?php
2
3
namespace GBProd\ElasticsearchExtraBundle\DependencyInjection;
4
5
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
6
use Symfony\Component\Config\Definition\ConfigurationInterface;
7
8
/**
9
 * Configuration
10
 *
11
 * @author gbprod <[email protected]>
12
 */
13
class Configuration implements ConfigurationInterface
14
{
15
    /**
16
     * {@inheritdoc}
17
     */
18
    public function getConfigTreeBuilder()
19
    {
20 1
        $treeBuilder = new TreeBuilder();
21 1
        $rootNode = $treeBuilder->root('elasticsearch_extra_bundle');
22
23
        $rootNode
24 1
            ->children()
25 1
                ->arrayNode('indices')
26 1
                    ->defaultValue([])
27 1
                    ->prototype('array')
28 1
                        ->prototype('variable')->end()
29 1
                    ->end()
30 1
                ->end()
31 1
            ->end()
32
        ;
33
34 1
        return $treeBuilder;
35
    }
36
}
37
38