Conditions | 1 |
Paths | 1 |
Total Lines | 23 |
Code Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Tests | 18 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | 3 | public function getConfigTreeBuilder() |
|
17 | { |
||
18 | 3 | $treeBuilder = new TreeBuilder(); |
|
19 | 3 | $rootNode = $treeBuilder->root('speicher210_fastbill'); |
|
20 | |||
21 | $rootNode |
||
22 | 3 | ->children() |
|
23 | 3 | ->scalarNode('username') |
|
24 | 3 | ->isRequired() |
|
25 | 3 | ->cannotBeEmpty() |
|
26 | 3 | ->end() |
|
27 | 3 | ->scalarNode('api_key') |
|
28 | 3 | ->isRequired() |
|
29 | 3 | ->cannotBeEmpty() |
|
30 | 3 | ->end() |
|
31 | 3 | ->scalarNode('account_hash') |
|
32 | 3 | ->cannotBeEmpty() |
|
33 | 3 | ->defaultNull() |
|
34 | 3 | ->end() |
|
35 | 3 | ->end(); |
|
36 | |||
37 | 3 | return $treeBuilder; |
|
38 | } |
||
39 | } |
||
40 |