Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
10 | 1 | public function getConfigTreeBuilder(): TreeBuilder |
|
11 | { |
||
12 | 1 | $treeBuilder = new TreeBuilder(); |
|
13 | 1 | $rootNode = $treeBuilder->root('elastic_om'); |
|
14 | |||
15 | $rootNode |
||
16 | 1 | ->children() |
|
17 | 1 | ->scalarNode('host')->defaultValue('localhost')->end() |
|
18 | 1 | ->scalarNode('port')->defaultValue(9200)->end() |
|
19 | 1 | ->scalarNode('index')->defaultValue('elastic_om')->end() |
|
20 | 1 | ->end(); |
|
21 | |||
22 | 1 | return $treeBuilder; |
|
23 | } |
||
24 | } |
||
25 |