Paginator
FinalYes
Orchestrates a {@see PaginationStrategy}: stop conditions, `>=400` handling, identical-request loop guard and page-state advancement. Implement {@see PaginationStrategy} to add a new pagination style; drop to {@see \Flow\ETL\Adapter\Http\DynamicExtractor\NextRequestFactory} for fully bespoke request derivation.
Methods
- __construct() : mixed
- initialRequest() : RequestInterface
- nextRequest() : RequestInterface|null
Methods
__construct()
public
__construct(PaginationStrategy $strategy, StopWhen $stopWhen[, bool $stopOnClientError = true ]) : mixed
Parameters
- $strategy : PaginationStrategy
- $stopWhen : StopWhen
- $stopOnClientError : bool = true
initialRequest()
public
initialRequest(RequestInterface $base) : RequestInterface
Parameters
- $base : RequestInterface
Return values
RequestInterfacenextRequest()
public
nextRequest(RequestInterface $base, DecodedResponse $previous) : RequestInterface|null
Parameters
- $base : RequestInterface
- $previous : DecodedResponse