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