| Conditions | 1 |
| Paths | 1 |
| Total Lines | 38 |
| Code Lines | 33 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function getConfigTreeBuilder() |
||
| 31 | { |
||
| 32 | $treeBuilder = new TreeBuilder(); |
||
| 33 | $rootNode = $treeBuilder->root('selligent'); |
||
| 34 | |||
| 35 | $rootNode |
||
| 36 | ->children() |
||
| 37 | ->scalarNode('login') |
||
| 38 | ->isRequired() |
||
| 39 | ->cannotBeEmpty() |
||
| 40 | ->end() |
||
| 41 | ->scalarNode('password') |
||
| 42 | ->isRequired() |
||
| 43 | ->cannotBeEmpty() |
||
| 44 | ->end() |
||
| 45 | ->scalarNode('namespace') |
||
| 46 | ->defaultValue('http://tempuri.org/') |
||
| 47 | ->end() |
||
| 48 | ->scalarNode('wsdl') |
||
| 49 | ->isRequired() |
||
| 50 | ->cannotBeEmpty() |
||
| 51 | ->end() |
||
| 52 | ->scalarNode('list') |
||
| 53 | ->isRequired() |
||
| 54 | ->end() |
||
| 55 | ->arrayNode('options') |
||
| 56 | ->children() |
||
| 57 | ->arrayNode('classmap') |
||
| 58 | ->isRequired() |
||
| 59 | ->prototype('scalar') |
||
| 60 | ->end() |
||
| 61 | ->end() |
||
| 62 | ->end() |
||
| 63 | ->end() |
||
| 64 | ; |
||
| 65 | |||
| 66 | return $treeBuilder; |
||
| 67 | } |
||
| 68 | |||
| 86 |