InfrastructureLoaderFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 5
dl 0
loc 16
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 10 1
1
<?php
2
3
namespace Assimtech\Tempo\Factory;
4
5
use Assimtech\Tempo\Loader\InfrastructureLoader;
6
use Assimtech\Tempo\Factory;
7
use Symfony\Component\Yaml;
8
9
/**
10
 * Constructs an InfrastructureLoader
11
 */
12
class InfrastructureLoaderFactory
13
{
14
    /**
15
     * @return \Assimtech\Tempo\Loader\InfrastructureLoader
16
     */
17 1
    public static function create()
18
    {
19 1
        return new InfrastructureLoader(
20 1
            new Factory\InfrastructureFactory(
21 1
                new Factory\NodeFactory(),
22 1
                new Factory\EnvironmentFactory()
23 1
            ),
24 1
            new Yaml\Parser()
25 1
        );
26
    }
27
}
28