| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 20 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | 1 | public function getConfigTreeBuilder() |
|
| 19 | { |
||
| 20 | 1 | $treeBuilder = new TreeBuilder(); |
|
| 21 | 1 | $rootNode = $treeBuilder->root('craftcamp_abac'); |
|
| 22 | $rootNode |
||
| 23 | 1 | ->children() |
|
| 24 | 1 | ->arrayNode('configuration_files')->isRequired()->requiresAtLeastOneElement() |
|
| 25 | 1 | ->prototype('scalar')->end() |
|
| 26 | 1 | ->end() |
|
| 27 | 1 | ->arrayNode('cache_options') |
|
| 28 | 1 | ->children() |
|
| 29 | 1 | ->scalarNode('cache_folder')->end() |
|
| 30 | 1 | ->end() |
|
| 31 | 1 | ->end() |
|
| 32 | 1 | ->arrayNode('attribute_options') |
|
| 33 | 1 | ->children() |
|
| 34 | 1 | ->scalarNode('getter_prefix')->end() |
|
| 35 | 1 | ->scalarNode('getter_name_transformation_function')->end() |
|
| 36 | 1 | ->end() |
|
| 37 | 1 | ->end() |
|
| 38 | 1 | ->end() |
|
| 39 | ; |
||
| 40 | 1 | return $treeBuilder; |
|
| 41 | } |
||
| 42 | } |
||
| 43 |