| 1 | <?php |
||
| 18 | final class ArrayCommandDiscriminator implements CommandDiscriminator |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var string[] |
||
| 22 | */ |
||
| 23 | private $commands; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * ArrayCommandDiscriminator constructor. |
||
| 27 | * |
||
| 28 | * @param string[] $commands |
||
| 29 | */ |
||
| 30 | public function __construct(array $commands) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | public function shouldEnqueue(Command $command): bool |
||
| 42 | } |
||
| 43 |