| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 23 | 
| Code Lines | 18 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 25 | public function getConfigTreeBuilder() | ||
| 26 |     { | ||
| 27 | $treeBuilder = new TreeBuilder(); | ||
| 28 |         $rootNode    = $treeBuilder->root('notify'); | ||
| 29 | |||
| 30 | $rootNode | ||
| 31 | ->children() | ||
| 32 |                 ->arrayNode('smtp') | ||
| 33 | ->children() | ||
| 34 |                         ->scalarNode('host')->isRequired()->end() | ||
| 35 |                         ->integerNode('port')->end() | ||
| 36 |                         ->enumNode('security') | ||
| 37 | ->values([null, 'ssl']) | ||
| 38 | ->end() | ||
| 39 |                         ->scalarNode('username')->isRequired()->end() | ||
| 40 |                         ->scalarNode('password')->isRequired()->end() | ||
| 41 | ->end() | ||
| 42 | ->end() | ||
| 43 | ->end() | ||
| 44 | ; | ||
| 45 | |||
| 46 | return $treeBuilder; | ||
| 47 | } | ||
| 48 | } | ||
| 49 |