| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function getConfigTreeBuilder() |
||
| 26 | { |
||
| 27 | $treeBuilder = new TreeBuilder(); |
||
| 28 | $rootNode = $treeBuilder->root('open_exchange_rates'); |
||
| 29 | $rootNode |
||
| 30 | ->children() |
||
| 31 | ->scalarNode('api_id') |
||
| 32 | ->cannotBeEmpty() |
||
| 33 | ->isRequired() |
||
| 34 | ->end() |
||
| 35 | ->arrayNode('api_configuration') |
||
| 36 | ->addDefaultsIfNotSet() |
||
| 37 | ->children() |
||
| 38 | ->scalarNode('https') |
||
| 39 | ->defaultValue(false) |
||
| 40 | ->end() |
||
| 41 | ->scalarNode('base_currency') |
||
| 42 | ->defaultValue('USD') |
||
| 43 | ->end() |
||
| 44 | ->end() |
||
| 45 | ->end(); |
||
| 46 | |||
| 47 | return $treeBuilder; |
||
| 48 | } |
||
| 49 | } |
||
| 50 |