Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | final class ArrayCommandDiscriminator implements CommandDiscriminator |
||
19 | { |
||
20 | /** |
||
21 | * @var string[] |
||
22 | */ |
||
23 | private $commandTypes; |
||
24 | |||
25 | /** |
||
26 | * ArrayCommandDiscriminator constructor. |
||
27 | * |
||
28 | * @param string[] $commandTypes |
||
29 | */ |
||
30 | public function __construct(array $commandTypes) |
||
31 | { |
||
32 | $this->commandTypes = \array_values($commandTypes); |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | public function shouldEnqueue(Command $command): bool |
||
41 | } |
||
42 | } |
||
43 |