| 1 | <?php |
||
| 10 | final class QueueProcessor implements QueueProcessorInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var TransportInterface |
||
| 14 | */ |
||
| 15 | private $transport; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var iterable|QueueInterface[] |
||
| 19 | */ |
||
| 20 | private $queue; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param TransportInterface $transport |
||
| 24 | * @param QueueInterface[] $queue |
||
| 25 | */ |
||
| 26 | 5 | public function __construct(TransportInterface $transport, iterable $queue) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritdoc} |
||
| 34 | */ |
||
| 35 | 5 | public function process(): int |
|
| 58 | } |
||
| 59 |