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