| Total Complexity | 7 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | final class DummyQueue implements QueueInterface |
||
| 15 | { |
||
| 16 | public function __construct(private $channelName) |
||
| 17 | { |
||
| 18 | } |
||
| 19 | |||
| 20 | public function push( |
||
| 21 | MessageInterface $message, |
||
| 22 | string|array|callable|MiddlewarePushInterface ...$middlewareDefinitions |
||
| 23 | ): MessageInterface { |
||
| 24 | return $message; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function run(int $max = 0): void |
||
| 28 | { |
||
| 29 | } |
||
| 30 | |||
| 31 | public function listen(): void |
||
| 32 | { |
||
| 33 | } |
||
| 34 | |||
| 35 | public function status(string $id): JobStatus |
||
| 36 | { |
||
| 37 | throw new Exception('`status()` method is not implemented yet.'); |
||
| 38 | } |
||
| 39 | |||
| 40 | public function withAdapter(AdapterInterface $adapter): QueueInterface |
||
| 43 | } |
||
| 44 | |||
| 45 | public function getChannelName(): string |
||
| 46 | { |
||
| 47 | return $this->channelName; |
||
| 48 | } |
||
| 49 | } |
||
| 50 |