| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function getConfigTreeBuilder() |
||
| 28 | { |
||
| 29 | $treeBuilder = new TreeBuilder(); |
||
| 30 | $rootNode = $treeBuilder->root('postman_generator'); |
||
| 31 | |||
| 32 | $rootNode |
||
| 33 | ->children() |
||
| 34 | ->booleanNode('public') |
||
| 35 | ->defaultFalse() |
||
| 36 | ->end() |
||
| 37 | ->scalarNode('name') |
||
| 38 | ->isRequired() |
||
| 39 | ->end() |
||
| 40 | ->scalarNode('baseUrl') |
||
| 41 | ->isRequired() |
||
| 42 | ->end() |
||
| 43 | ->scalarNode('description')->defaultNull()->end() |
||
| 44 | ->scalarNode('defaultLocale')->defaultValue('en_GB')->end() |
||
| 45 | ->scalarNode('authentication')->defaultNull()->end() |
||
| 46 | ->end() |
||
| 47 | ; |
||
| 48 | |||
| 49 | return $treeBuilder; |
||
| 50 | } |
||
| 51 | } |
||
| 52 |