Total Complexity | 2 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class EventCorrelation |
||
11 | { |
||
12 | /** @psalm-var class-string */ |
||
13 | public string $eventFqcn; |
||
14 | /** @psalm-var class-string */ |
||
15 | public string $listenerFqcn; |
||
16 | public Priority $priority; |
||
17 | |||
18 | /** |
||
19 | * @psalm-param class-string $eventFqcn |
||
20 | * @psalm-param class-string $listenerFqcn |
||
21 | */ |
||
22 | private function __construct( |
||
23 | string $eventFqcn, |
||
24 | string $listenerFqcn, |
||
25 | Priority $priority |
||
26 | ) { |
||
27 | $this->eventFqcn = $eventFqcn; |
||
28 | $this->listenerFqcn = $listenerFqcn; |
||
29 | $this->priority = $priority; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @psalm-param class-string $eventFqcn |
||
34 | * @psalm-param class-string $listenerFqcn |
||
35 | */ |
||
36 | public static function create( |
||
42 | } |
||
43 | } |
||
44 |