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