| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 14 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | 3 | public function getConfigTreeBuilder() |
|
| 11 | { |
||
| 12 | 3 | $treeBuilder = new TreeBuilder(); |
|
| 13 | 3 | $root = $treeBuilder->root('crowd_reactive_lob', 'array'); |
|
| 14 | |||
| 15 | $root |
||
| 16 | 3 | ->children() |
|
| 17 | 3 | ->scalarNode('api_key') |
|
| 18 | 3 | ->isRequired() |
|
| 19 | 3 | ->cannotBeEmpty() |
|
| 20 | 3 | ->info('Lob.com API key') |
|
| 21 | 3 | ->end() |
|
| 22 | 3 | ->scalarNode('version') |
|
| 23 | 3 | ->defaultNull() |
|
| 24 | 3 | ->info('Version of the Lob.com API to use (default is latest)') |
|
| 25 | 3 | ->end(); |
|
| 26 | |||
| 27 | 3 | return $treeBuilder; |
|
| 28 | } |
||
| 29 | } |
||
| 30 |