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

Configuration   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfigTreeBuilder() 0 14 1
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