We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5de8d9d commit 3553a51Copy full SHA for 3553a51
Handler/BatchHandlerTrait.php
@@ -16,13 +16,6 @@
16
*/
17
trait BatchHandlerTrait
18
{
19
- /**
20
- * Completes the jobs in the list.
21
- *
22
- * @list<array{0: object, 1: Acknowledger}> $jobs A list of pairs of messages and their corresponding acknowledgers
23
- */
24
- abstract private function process(array $jobs): void;
25
-
26
private array $jobs = [];
27
28
/**
@@ -67,4 +60,11 @@ private function shouldFlush(): bool
67
60
68
61
return 10 <= \count($this->jobs);
69
62
}
63
+
64
+ /**
65
+ * Completes the jobs in the list.
66
+ *
+ * @list<array{0: object, 1: Acknowledger}> $jobs A list of pairs of messages and their corresponding acknowledgers
+ */
+ abstract private function process(array $jobs): void;
70
0 commit comments