Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public static function eventHandlingMethodDoesNotExist(object $eventHandler, ShouldBeStored $event, string $methodName): self |
||
11 | { |
||
12 | $eventHandlerClass = get_class($eventHandler); |
||
13 | $eventClass = get_class($event); |
||
14 | |||
15 | return new static("Tried to call `$methodName` on `$eventHandlerClass` to handle an event of class `$eventClass` but that method does not exist."); |
||
16 | } |
||
17 | |||
38 |