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