Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | public function getConfigTreeBuilder() |
||
25 | { |
||
26 | $treeBuilder = new TreeBuilder(); |
||
27 | $rootNode = $treeBuilder->root('gauges'); |
||
28 | $rootNode |
||
29 | ->useAttributeAsKey('path') |
||
30 | ->prototype('array') |
||
31 | ->children() |
||
32 | ->scalarNode('class') |
||
33 | ->isRequired() |
||
34 | ->cannotBeEmpty() |
||
35 | ->end() |
||
36 | ->variableNode('arguments')->end() |
||
37 | ->end(); |
||
38 | |||
39 | return $treeBuilder; |
||
40 | } |
||
41 | } |
||
42 |