Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
29 | 1 | public static function createFromCacheParameters(array $parameters): EntryInterface |
|
30 | { |
||
31 | /** @var EntryInterface $class */ |
||
32 | 1 | [$class, $cacheParameters] = $parameters; |
|
33 | |||
34 | /** @var FactoryEntry $factory */ |
||
35 | 1 | $factory = (new \ReflectionClass(static::class))->newInstanceWithoutConstructor(); |
|
36 | 1 | $factory->entry = $class::createFromCacheParameters($cacheParameters); |
|
37 | |||
38 | 1 | return $factory; |
|
39 | } |
||
62 |