Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
47 | 2 | private static function getHydrator() |
|
48 | { |
||
49 | 2 | $className = static::class; |
|
50 | |||
51 | 2 | if (!isset(self::$hydrators[$className])) { |
|
52 | 1 | $configuration = new Configuration($className); |
|
53 | 1 | $hydratorClass = $configuration->createFactory()->getHydratorClass(); |
|
54 | 1 | self::$hydrators[$className] = new $hydratorClass(); |
|
55 | } |
||
56 | |||
57 | 2 | return self::$hydrators[$className]; |
|
58 | } |
||
60 |