Configuration   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 11
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
declare(strict_types=1);
4
5
namespace Darkilliant\ProcessBundle\DependencyInjection;
6
7
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
8
use Symfony\Component\Config\Definition\ConfigurationInterface;
9
10
/**
11
 * @internal
12
 * Class Configuration
13
 *
14
 * @codeCoverageIgnore
15
 */
16
class Configuration implements ConfigurationInterface
17
{
18
    public function getConfigTreeBuilder()
19
    {
20
        $tree = new TreeBuilder();
21
        $root = $tree->root('darkilliant_process');
22
23
        $root
24
            ->children()
25
                ->arrayNode('process')
26
                    ->useAttributeAsKey('name')
27
                    ->prototype('variable')->end()
28
                ->end()
29
            ->end();
30
31
        return $tree;
32
    }
33
}
34