| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 21 | 1 | public function findFor(DomainEventInterface $event): ProjectorMap |
|
| 22 | { |
||
| 23 | 1 | $projectors = []; |
|
| 24 | 1 | foreach ($this as $key => $eventProjector) { |
|
| 25 | 1 | if ($eventProjector->matches($event)) { |
|
| 26 | 1 | $projectors[$key] = $eventProjector->getProjector(); |
|
| 27 | } |
||
| 28 | } |
||
| 29 | 1 | return new ProjectorMap($projectors); |
|
| 30 | } |
||
| 32 |