Total Complexity | 4 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class EventHandlerReference |
||
10 | { |
||
11 | |||
12 | private function __construct( |
||
13 | private string $handlerMethodName, |
||
14 | private string $inboundEventClass |
||
15 | ) |
||
16 | { |
||
17 | } |
||
18 | |||
19 | /** |
||
20 | * @return string |
||
21 | */ |
||
22 | public function getHandlerMethodName(): string |
||
23 | { |
||
24 | return $this->handlerMethodName; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @return string |
||
29 | */ |
||
30 | public function getInboundEventClass(): string |
||
33 | } |
||
34 | |||
35 | public static function create(string $handlerMethodName, string $inboundEventClass): EventHandlerReference |
||
38 | } |
||
39 | |||
40 | |||
41 | } |