ConfigurationFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 2
Metric Value
wmc 1
c 2
b 0
f 2
lcom 0
cbo 2
dl 0
loc 13
ccs 8
cts 8
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A createFromArray() 0 10 1
1
<?php
2
3
namespace ivol\Config;
4
5
6
use Symfony\Component\Config\Definition\Processor;
7
8
class ConfigurationFactory
9
{
10 12
    public static function createFromArray($params = array())
11
    {
12 12
        $processor = new Processor();
13 12
        $configuration = new ExecWrapperConfiguration();
14 12
        $processedConfiguration = $processor->processConfiguration(
15 12
            $configuration,
16 12
            array($params)
17 12
        );
18 12
        return $processedConfiguration;
19
    }
20
}