1: | <?php declare(strict_types=1); |
2: | |
3: | namespace Salient\Contract\Curler; |
4: | |
5: | use Psr\Http\Message\RequestInterface; |
6: | |
7: | /** |
8: | * @api |
9: | */ |
10: | interface CurlerPageRequestInterface |
11: | { |
12: | /** |
13: | * Get a request to retrieve a page of data from the endpoint |
14: | */ |
15: | public function getRequest(): RequestInterface; |
16: | |
17: | /** |
18: | * Get the query applied to the request to retrieve a page of data |
19: | * |
20: | * @return mixed[]|null |
21: | */ |
22: | public function getQuery(): ?array; |
23: | } |
24: |