Conditions | 1 |
Paths | 1 |
Total Lines | 34 |
Code Lines | 31 |
Lines | 0 |
Ratio | 0 % |
Tests | 31 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
28 | 1 | public function getConfigTreeBuilder() |
|
29 | { |
||
30 | 1 | $treeBuilder = new TreeBuilder(); |
|
31 | 1 | $treeBuilder->root('swp_rule') |
|
32 | 1 | ->children() |
|
33 | 1 | ->arrayNode('persistence') |
|
34 | 1 | ->addDefaultsIfNotSet() |
|
35 | 1 | ->children() |
|
36 | 1 | ->arrayNode('orm') |
|
37 | 1 | ->addDefaultsIfNotSet() |
|
38 | 1 | ->canBeEnabled() |
|
39 | 1 | ->children() |
|
40 | 1 | ->arrayNode('classes') |
|
41 | 1 | ->addDefaultsIfNotSet() |
|
42 | 1 | ->children() |
|
43 | 1 | ->arrayNode('rule') |
|
44 | 1 | ->addDefaultsIfNotSet() |
|
45 | 1 | ->children() |
|
46 | 1 | ->scalarNode('model')->cannotBeEmpty()->defaultValue(Rule::class)->end() |
|
47 | 1 | ->scalarNode('repository')->defaultValue(RuleRepository::class)->end() |
|
48 | 1 | ->scalarNode('factory')->defaultValue(Factory::class)->end() |
|
49 | 1 | ->scalarNode('object_manager_name')->defaultValue(null)->end() |
|
50 | 1 | ->end() |
|
51 | 1 | ->end() |
|
52 | 1 | ->end() |
|
53 | 1 | ->end() |
|
54 | 1 | ->end() |
|
55 | 1 | ->end() |
|
56 | 1 | ->end() |
|
57 | 1 | ->end() |
|
58 | 1 | ->end(); |
|
59 | |||
60 | 1 | return $treeBuilder; |
|
61 | } |
||
62 | } |
||
63 |