Completed
Push — master ( 0eb878...91fabd )
by Joachim
12:49
created

Configuration::getConfigTreeBuilder()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 9
nc 1
nop 0
1
<?php
2
namespace Loevgaard\DandomainAltapayBundle\DependencyInjection;
3
4
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
5
use Symfony\Component\Config\Definition\ConfigurationInterface;
6
7
class Configuration implements ConfigurationInterface
8
{
9
    public function getConfigTreeBuilder()
10
    {
11
        $treeBuilder = new TreeBuilder();
12
        $rootNode = $treeBuilder->root('loevgaard_dandomain_altapay');
13
14
        $rootNode
15
            ->children()
16
                ->scalarNode('altapay_username')->end()
17
                ->scalarNode('altapay_password')->end()
18
            ->end()
19
        ;
20
21
        return $treeBuilder;
22
    }
23
}
24