| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function handle(Event $event, Projector $projector): void |
||
| 32 | { |
||
| 33 | if (! $projector instanceof GreedyProjector) { |
||
| 34 | throw new InvalidProjectorUsageException( |
||
| 35 | "Need to use a greedy projector with a greedy event handling strategy." |
||
| 36 | ); |
||
| 37 | } |
||
| 38 | |||
| 39 | $projector->handle($event); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |