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