1 | <?php |
||
11 | class SyncQueue implements Queue |
||
12 | { |
||
13 | /** |
||
14 | * Push command onto the queue. |
||
15 | * |
||
16 | * @param Driver $driver |
||
17 | * @param Command $command |
||
18 | */ |
||
19 | 2 | public function push(Driver $driver, Command $command): void |
|
23 | |||
24 | /** |
||
25 | * Push command onto the queue with a delay. |
||
26 | * |
||
27 | * @param Driver $driver |
||
28 | * @param Command $command |
||
29 | * @param int $delay |
||
30 | * |
||
31 | * @return mixed|void |
||
32 | */ |
||
33 | 1 | public function later(Driver $driver, Command $command, int $delay): void |
|
41 | } |
||
42 |