| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | final class BeforeAnalysisHookDecorator implements BeforeAnalysis, HookDecorator |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | * @psalm-var class-string<\Churn\Event\Hook\BeforeAnalysisHook> |
||
| 18 | */ |
||
| 19 | private $hook; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param string $hook The user-defined hook class name. |
||
| 23 | * @psalm-param class-string<\Churn\Event\Hook\BeforeAnalysisHook> $hook |
||
| 24 | */ |
||
| 25 | public function __construct(string $hook) |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param BeforeAnalysisEvent $event The event triggered when the analysis starts. |
||
| 32 | */ |
||
| 33 | #[\Override] |
||
| 39 |