Conditions | 2 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
27 | public function matches(DomainEventInterface $event): bool |
||
28 | { |
||
29 | $eventFqcn = get_class($event); |
||
30 | return array_reduce( |
||
31 | $this->eventExpressions, |
||
32 | fn(bool $carry, string $eventExpression): bool => $carry || $eventExpression === $eventFqcn, |
||
33 | false |
||
34 | ); |
||
47 |