Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
28 | 7 | public function getListenersForEvent(object $event): iterable |
|
29 | { |
||
30 | 7 | yield from $this->listeners->getForEvents($event::class); |
|
31 | /** @psalm-suppress MixedArgument */ |
||
32 | 7 | yield from $this->listeners->getForEvents(...array_values(class_parents($event))); |
|
33 | /** @psalm-suppress MixedArgument */ |
||
34 | 7 | yield from $this->listeners->getForEvents(...array_values(class_implements($event))); |
|
35 | } |
||
37 |