Completed
Push — master ( 030796...0c67b5 )
by Asmir
30:13
created

Configuration   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfigTreeBuilder() 0 19 1
1
<?php
2
namespace GoetasWebservices\SoapServices\SoapClient\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('soap_client');
13
        $rootNode
14
            ->children()
15
                ->arrayNode('alternative_endpoints')->fixXmlConfig('alternative_endpoint')
16
                    ->prototype('array')
17
                        ->prototype('scalar')
18
                        ->end()
19
                    ->end()
20
                ->end()
21
                ->scalarNode('unwrap_returns')
22
                    ->defaultValue(false)
23
                ->end()
24
            ->end()
25
        ;
26
        return $treeBuilder;
27
    }
28
}
29