| 1 | <?php |
||
| 12 | final class FlushableQueue implements QueueInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var QueueInterface |
||
| 16 | */ |
||
| 17 | private $decoratedQueue; |
||
| 18 | |||
| 19 | 3 | public function __construct(QueueInterface $queue) |
|
| 23 | |||
| 24 | 1 | public function flush(): int |
|
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritdoc} |
||
| 39 | */ |
||
| 40 | 1 | public function store(MessageInterface $message): void |
|
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritdoc} |
||
| 47 | */ |
||
| 48 | 1 | public function fetch(): MessageInterface |
|
| 52 | } |
||
| 53 |