| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 18 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | 1 | public function getConfigTreeBuilder() |
|
| 19 | { |
||
| 20 | 1 | $treeBuilder = new TreeBuilder(); |
|
| 21 | 1 | $rootNode = $treeBuilder->root('adobe_campaign_client'); |
|
| 22 | |||
| 23 | $rootNode |
||
| 24 | 1 | ->children() |
|
| 25 | 1 | ->scalarNode('base_uri')->cannotBeEmpty()->isRequired()->end() |
|
| 26 | 1 | ->scalarNode('login')->end() |
|
| 27 | 1 | ->scalarNode('password')->end() |
|
| 28 | 1 | ->arrayNode('schemas') |
|
| 29 | 1 | ->prototype('array') |
|
| 30 | 1 | ->children() |
|
| 31 | 1 | ->scalarNode('name')->cannotBeEmpty()->isRequired()->end() |
|
| 32 | 1 | ->scalarNode('schema')->cannotBeEmpty()->isRequired()->end() |
|
| 33 | 1 | ->end() |
|
| 34 | 1 | ->end() |
|
| 35 | 1 | ->end() |
|
| 36 | 1 | ->end() |
|
| 37 | ; |
||
| 38 | |||
| 39 | 1 | return $treeBuilder; |
|
| 40 | 1 | } |
|
| 41 | } |
||
| 42 |