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

Configuration::getConfigTreeBuilder()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 19
Code Lines 16

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 19
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 16
nc 1
nop 0
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