Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
70 | 31 | private static function getHydrator() |
|
71 | { |
||
72 | 31 | $className = static::class; |
|
73 | |||
74 | 31 | if (!isset(self::$hydrators[$className])) { |
|
75 | 17 | $configuration = new Configuration($className); |
|
76 | 17 | $hydratorClass = $configuration->createFactory()->getHydratorClass(); |
|
77 | 17 | self::$hydrators[$className] = new $hydratorClass(); |
|
78 | } |
||
79 | |||
80 | 31 | return self::$hydrators[$className]; |
|
81 | } |
||
83 |