Conditions | 1 |
Paths | 1 |
Total Lines | 30 |
Code Lines | 21 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
57 | protected function addConvertNode() |
||
58 | { |
||
59 | $treeBuilder = new TreeBuilder(); |
||
60 | $node = $treeBuilder->root('convert'); |
||
61 | |||
62 | $node->requiresAtLeastOneElement() |
||
63 | ->prototype('array') |
||
64 | ->children() |
||
65 | |||
66 | ->scalarNode('add') |
||
67 | ->cannotBeEmpty() |
||
68 | ->end() |
||
69 | |||
70 | ->scalarNode('sub') |
||
71 | ->cannotBeEmpty() |
||
72 | ->end() |
||
73 | |||
74 | ->scalarNode('mul') |
||
75 | ->cannotBeEmpty() |
||
76 | ->end() |
||
77 | |||
78 | ->scalarNode('div') |
||
79 | ->cannotBeEmpty() |
||
80 | ->end() |
||
81 | |||
82 | ->end() |
||
83 | ->end(); |
||
84 | |||
85 | return $node; |
||
86 | } |
||
87 | } |
||
88 |