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