Configuration   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfigTreeBuilder() 0 12 1
1
<?php declare(strict_types=1);
2
3
namespace Wesnick\WorkflowBundle\DependencyInjection;
4
5
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
6
use Symfony\Component\Config\Definition\ConfigurationInterface;
7
8
/**
9
 * Class Configuration.
10
 *
11
 * @author Wesley O. Nichols <[email protected]>
12
 */
13
class Configuration implements ConfigurationInterface
14
{
15
    public function getConfigTreeBuilder()
16
    {
17
        $treeBuilder = new TreeBuilder('wesnick_workflow');
18
19
        $treeBuilder->getRootNode()
20
            ->children()
21
                ->booleanNode('api_patch_transitions')->defaultTrue()->end()
22
                ->booleanNode('workflow_validation_guard')->defaultTrue()->end()
23
            ->end()
24
        ;
25
26
        return $treeBuilder;
27
    }
28
29
}
30