HydratorFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 8 1
1
<?php
2
3
namespace Pgs\ElasticOM\Hydrator;
4
5
use Pgs\ElasticOM\Extractor;
6
use Pgs\ElasticOM\ObjectPool;
7
use Zend\Hydrator\Reflection;
8
9
class HydratorFactory extends Reflection
10
{
11 1
    public static function create(): Hydrator
12
    {
13 1
        return new Hydrator(
14 1
            new Extractor(),
15 1
            new Reflection(),
16 1
            new ObjectPool()
17
        );
18
    }
19
}
20