Skip to content

Commit 3553a51

Browse files
committed
Reorganize abstract private method
1 parent 5de8d9d commit 3553a51

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Handler/BatchHandlerTrait.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@
1616
*/
1717
trait BatchHandlerTrait
1818
{
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-
2619
private array $jobs = [];
2720

2821
/**
@@ -67,4 +60,11 @@ private function shouldFlush(): bool
6760
{
6861
return 10 <= \count($this->jobs);
6962
}
63+
64+
/**
65+
* Completes the jobs in the list.
66+
*
67+
* @list<array{0: object, 1: Acknowledger}> $jobs A list of pairs of messages and their corresponding acknowledgers
68+
*/
69+
abstract private function process(array $jobs): void;
7070
}

0 commit comments

Comments
 (0)