Total Complexity | 4 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 87.5% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class Proxy |
||
13 | { |
||
14 | /** @var array<class-string, object> */ |
||
|
|||
15 | private static array $cache = []; |
||
16 | |||
17 | /** |
||
18 | * @template TClass of object |
||
19 | * @param \ReflectionClass<TClass> $type |
||
20 | * @return TClass |
||
21 | */ |
||
22 | 15 | public static function create(\ReflectionClass $type, \Stringable|string|null $context): object |
|
56 |