| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | 2 | public function getConfigTreeBuilder() |
|
| 15 | { |
||
| 16 | 2 | $builder = new TreeBuilder(); |
|
| 17 | 2 | $children = $builder->root('mrtn_json_api')->children(); |
|
| 18 | |||
| 19 | 2 | $children->arrayNode('mappers') |
|
| 20 | 2 | ->defaultValue(['default' => [ |
|
| 21 | 'handlers' => [ |
||
| 22 | 'attribute', |
||
| 23 | 'relationship', |
||
| 24 | 'link' |
||
| 25 | ] |
||
| 26 | ]]) |
||
| 27 | 2 | ->prototype('array') |
|
| 28 | 2 | ->children() |
|
| 29 | 2 | ->arrayNode('handlers') |
|
| 30 | 2 | ->prototype('scalar'); |
|
| 31 | |||
| 32 | 2 | return $builder; |
|
| 33 | } |
||
| 34 | } |