Skip to content

Commit 73c35a6

Browse files
committed
Rename Rueckmeldungscode::PAGINATION to ::AUFSETZPUNKT
It's a more general concept, simply meaning the continuation of a process on the server (whether it produces output as a series of pages or not). This is technically a breaking change, but I suspect no real clients use this symbol directly in their application code.
1 parent 4b52bce commit 73c35a6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/Fhp/PaginateableAction.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use Fhp\Protocol\Message;
77
use Fhp\Protocol\UnexpectedResponseException;
88
use Fhp\Protocol\UPD;
9-
use Fhp\Segment\BaseSegment;
109
use Fhp\Segment\HIRMS\Rueckmeldungscode;
1110
use Fhp\Segment\Paginateable;
1211

@@ -79,7 +78,7 @@ public function hasMorePages(): bool
7978

8079
public function processResponse(Message $response)
8180
{
82-
if (($pagination = $response->findRueckmeldung(Rueckmeldungscode::PAGINATION)) !== null) {
81+
if (($pagination = $response->findRueckmeldung(Rueckmeldungscode::AUFSETZPUNKT)) !== null) {
8382
if (count($pagination->rueckmeldungsparameter) !== 1) {
8483
throw new UnexpectedResponseException("Unexpected pagination request: $pagination");
8584
}

lib/Fhp/Segment/HIRMS/Rueckmeldungscode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static function isError(int $code): bool
7777
* Tells the client that the response is incomplete and the request needs to be re-sent with the pagination token
7878
* ("Aufsetzpunkt") that is contained in the Rueckmeldung parameters.
7979
*/
80-
public const PAGINATION = 3040;
80+
public const AUFSETZPUNKT = 3040;
8181

8282
public const VOP_KEINE_NAMENSABWEICHUNG = 25;
8383

0 commit comments

Comments
 (0)