HydratorFactory::create()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 5
cts 5
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
crap 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