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