1 | <?php |
||
12 | class SyncAdapter extends Adapter |
||
13 | { |
||
14 | /** |
||
15 | * Establish connection to the queue. |
||
16 | */ |
||
17 | public function connect(): void |
||
20 | |||
21 | /** |
||
22 | * Push command onto the queue. |
||
23 | * |
||
24 | * @param Channel $channel |
||
25 | * @param Driver $driver |
||
26 | * @param Command $command |
||
27 | */ |
||
28 | 2 | public function push(Channel $channel, Driver $driver, Command $command): void |
|
32 | |||
33 | /** |
||
34 | * Push command onto the queue with a delay. |
||
35 | * |
||
36 | * @param Channel $channel |
||
37 | * @param Driver $driver |
||
38 | * @param Command $command |
||
39 | * @param int $delay |
||
40 | * |
||
41 | * @return mixed|void |
||
42 | */ |
||
43 | 1 | public function later(Channel $channel, Driver $driver, Command $command, int $delay): void |
|
51 | } |
||
52 |