Conditions | 1 |
Paths | 1 |
Total Lines | 46 |
Code Lines | 41 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function getConfigTreeBuilder() |
||
17 | { |
||
18 | $treeBuilder = new TreeBuilder(); |
||
19 | |||
20 | $rootNode = $treeBuilder->root('params'); |
||
21 | |||
22 | $rootNode |
||
23 | ->children() |
||
24 | ->scalarNode('user_email') |
||
25 | ->defaultNull() |
||
26 | ->end() |
||
27 | ->scalarNode('user_phone') |
||
28 | ->defaultNull() |
||
29 | ->end() |
||
30 | ->scalarNode('user_full_name') |
||
31 | ->defaultNull() |
||
32 | ->end() |
||
33 | ->scalarNode('subject') |
||
34 | ->isRequired() |
||
35 | ->cannotBeEmpty() |
||
36 | ->end() |
||
37 | ->scalarNode('content') |
||
38 | ->isRequired() |
||
39 | ->cannotBeEmpty() |
||
40 | ->end() |
||
41 | ->scalarNode('content_html') |
||
42 | ->isRequired() |
||
43 | ->cannotBeEmpty() |
||
44 | ->end() |
||
45 | ->scalarNode('group_id') |
||
46 | ->defaultNull() |
||
47 | ->end() |
||
48 | ->scalarNode('language_id') |
||
49 | ->defaultNull() |
||
50 | ->end() |
||
51 | ->arrayNode('custom_fields') |
||
52 | ->end() |
||
53 | ->arrayNode('labels') |
||
54 | ->end() |
||
55 | ->arrayNode('attachments') |
||
56 | ->prototype('scalar') |
||
57 | ->end() |
||
58 | ->end(); |
||
59 | |||
60 | return $treeBuilder; |
||
61 | } |
||
62 | } |
||
63 |