Configuration   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfigTreeBuilder() 0 14 1
1
<?php
2
3
namespace Darkilliant\ImportBundle\DependencyInjection;
4
5
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
6
use Symfony\Component\Config\Definition\ConfigurationInterface;
7
8
/**
9
 * @internal
10
 * @codeCoverageIgnore
11
 * Class Configuration
12
 */
13
class Configuration implements ConfigurationInterface
14
{
15
    public function getConfigTreeBuilder()
16
    {
17
        $treeBuilder = new TreeBuilder();
18
19
        $root = $treeBuilder->root('darkilliant_import');
20
21
        $root
22
            ->children()
23
                ->variableNode('fields_entity_resolver')->defaultValue([])->end()
24
                ->variableNode('entity_resolver_cache')->defaultValue([])->end()
25
                ->variableNode('imports')->defaultValue([])->end()
26
            ->end();
27
28
        return $treeBuilder;
29
    }
30
}
31