for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Churn\Event\Subscriber;
use Churn\Event\Event\AfterFileAnalysis as AfterFileAnalysisEvent;
/**
* @internal
* @implements HookDecorator<\Churn\Event\Hook\AfterFileAnalysisHook>
*/
final class AfterFileAnalysisHookDecorator implements AfterFileAnalysis, HookDecorator
{
* @var string
* @psalm-var class-string<\Churn\Event\Hook\AfterFileAnalysisHook>
private $hook;
* @param string $hook The user-defined hook class name.
* @psalm-param class-string<\Churn\Event\Hook\AfterFileAnalysisHook> $hook
public function __construct(string $hook)
$this->hook = $hook;
}
* @param AfterFileAnalysisEvent $event The event triggered when the analysis of a file is done.
#[\Override]
public function onAfterFileAnalysis(AfterFileAnalysisEvent $event): void
$this->hook::afterFileAnalysis($event);