| Total Complexity | 3 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class GeneratorProxy |
||
| 10 | { |
||
| 11 | private ?GeneratorInterface $generator = null; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @psalm-param class-string<GeneratorInterface> $class |
||
| 15 | */ |
||
| 16 | 8 | public function __construct(private readonly Closure $loader, private readonly string $class) |
|
| 17 | { |
||
| 18 | 8 | } |
|
| 19 | |||
| 20 | /** |
||
| 21 | * @return class-string<GeneratorInterface> |
||
|
|
|||
| 22 | */ |
||
| 23 | 2 | public function getClass(): string |
|
| 26 | } |
||
| 27 | |||
| 28 | 2 | public function loadGenerator(): GeneratorInterface |
|
| 33 |