Total Complexity | 4 |
Total Lines | 55 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class DeadQueue extends Queue |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * @param string $queue |
||
12 | * |
||
13 | * @throws QueueWithoutConnectionException |
||
14 | */ |
||
15 | public static function restoreMessages(string $queue) |
||
21 | ); |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @param string $queue |
||
26 | * @return int |
||
27 | * |
||
28 | * @throws QueueWithoutConnectionException |
||
29 | */ |
||
30 | public static function removeMessagesFromQueue(string $queue) |
||
31 | { |
||
32 | return parent::removeMessages( |
||
|
|||
33 | $queue, self::getDeadQueueName($queue) |
||
34 | ); |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @param string $queue |
||
39 | * @return int |
||
40 | * |
||
41 | * @throws QueueWithoutConnectionException |
||
42 | */ |
||
43 | public static function countMessagesInQueue(string $queue) |
||
47 | ); |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * @param string $queue |
||
52 | * @param int $start |
||
53 | * @param int $end |
||
54 | * @return array |
||
55 | * |
||
56 | * @throws QueueWithoutConnectionException |
||
57 | */ |
||
58 | public static function getMessagesFromQueue(string $queue, int $start, int $end) |
||
62 | ); |
||
63 | } |
||
65 |