FactoryDefault   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 9
c 0
b 0
f 0
wmc 1
lcom 0
cbo 2
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConverter() 0 6 1
1
<?php
2
3
namespace HansOtt\RangeRegex;
4
5
final class FactoryDefault implements Factory
6
{
7 2
    public function getConverter()
8
    {
9 2
        $converter = new ConverterDefault();
10
11 2
        return new ConverterCached($converter);
12
    }
13
}
14