Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | final class ArrayEventDiscriminator implements EventDiscriminator |
||
19 | { |
||
20 | /** |
||
21 | * @var string[] |
||
22 | */ |
||
23 | private $eventTypes; |
||
24 | |||
25 | /** |
||
26 | * ArrayEventDiscriminator constructor. |
||
27 | * |
||
28 | * @param string[] $eventTypes |
||
29 | */ |
||
30 | public function __construct(array $eventTypes) |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | public function shouldEnqueue(Event $event): bool |
||
43 |