| Conditions | 1 |
| Paths | 1 |
| Total Lines | 30 |
| Code Lines | 26 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 25 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | 1 | public function getConfigTreeBuilder() |
|
| 17 | { |
||
| 18 | 1 | $treeBuilder = new TreeBuilder; |
|
| 19 | 1 | $root = $treeBuilder->root('innmind_rest_client'); |
|
| 20 | |||
| 21 | $root |
||
| 22 | 1 | ->children() |
|
| 23 | 1 | ->arrayNode('types') |
|
| 24 | 1 | ->defaultValue([]) |
|
| 25 | 1 | ->prototype('scalar')->end() |
|
| 26 | 1 | ->end() |
|
| 27 | 1 | ->arrayNode('content_type') |
|
| 28 | 1 | ->info('The list of formats you accept in the "Content-Type" response header') |
|
| 29 | 1 | ->useAttributeAsKey('name') |
|
| 30 | 1 | ->requiresAtLeastOneElement() |
|
| 31 | 1 | ->prototype('array') |
|
| 32 | 1 | ->children() |
|
| 33 | 1 | ->integerNode('priority')->end() |
|
| 34 | 1 | ->arrayNode('media_types') |
|
| 35 | 1 | ->useAttributeAsKey('name') |
|
| 36 | 1 | ->requiresAtLeastOneElement() |
|
| 37 | 1 | ->prototype('scalar')->end() |
|
| 38 | 1 | ->end() |
|
| 39 | 1 | ->end() |
|
| 40 | 1 | ->end() |
|
| 41 | 1 | ->end() |
|
| 42 | 1 | ->end(); |
|
| 43 | |||
| 44 | 1 | return $treeBuilder; |
|
| 45 | } |
||
| 46 | } |
||
| 47 |