for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Th3Mouk\ReactiveEventDispatcher;
/**
* @psalm-immutable
*/
final class EventCorrelation
{
/** @psalm-var class-string */
public string $eventFqcn;
public string $listenerFqcn;
public Priority $priority;
* @psalm-param class-string $eventFqcn
* @psalm-param class-string $listenerFqcn
private function __construct(
string $eventFqcn,
string $listenerFqcn,
Priority $priority
) {
$this->eventFqcn = $eventFqcn;
$this->listenerFqcn = $listenerFqcn;
$this->priority = $priority;
}
public static function create(
): self {
return new self($eventFqcn, $listenerFqcn, $priority);