@@ -27,6 +27,7 @@ discard block |
||
| 27 | 27 | * @param MessageInterface[] $messages |
| 28 | 28 | * |
| 29 | 29 | * @throws FailedAcknowledgementException |
| 30 | + * @return void |
|
| 30 | 31 | */ |
| 31 | 32 | public function acknowledge(array $messages); |
| 32 | 33 | |
@@ -42,6 +43,7 @@ discard block |
||
| 42 | 43 | * @param MessageInterface[] $messages |
| 43 | 44 | * |
| 44 | 45 | * @throws FailedEnqueueException |
| 46 | + * @return void |
|
| 45 | 47 | */ |
| 46 | 48 | public function enqueue(array $messages); |
| 47 | 49 | |
@@ -20,6 +20,7 @@ |
||
| 20 | 20 | /** |
| 21 | 21 | * @param callable $worker |
| 22 | 22 | * @param int $limit |
| 23 | + * @return void |
|
| 23 | 24 | */ |
| 24 | 25 | public function receive(callable $worker, $limit = 1); |
| 25 | 26 | } |
@@ -20,6 +20,7 @@ |
||
| 20 | 20 | /** |
| 21 | 21 | * @param string $body |
| 22 | 22 | * @param array $options |
| 23 | + * @return Message\MessageInterface |
|
| 23 | 24 | */ |
| 24 | 25 | public function create($body, array $options = []); |
| 25 | 26 | |
@@ -16,7 +16,6 @@ |
||
| 16 | 16 | namespace Graze\Queue\Handler; |
| 17 | 17 | |
| 18 | 18 | use ArrayIterator; |
| 19 | -use Closure; |
|
| 20 | 19 | use Graze\Queue\Adapter\AdapterInterface; |
| 21 | 20 | use GuzzleHttp\Message\MessageInterface; |
| 22 | 21 | use Mockery as m; |
@@ -16,7 +16,6 @@ |
||
| 16 | 16 | namespace Graze\Queue\Handler; |
| 17 | 17 | |
| 18 | 18 | use ArrayIterator; |
| 19 | -use Closure; |
|
| 20 | 19 | use Graze\Queue\Adapter\AdapterInterface; |
| 21 | 20 | use GuzzleHttp\Message\MessageInterface; |
| 22 | 21 | use Mockery as m; |