| 1: | <?php declare(strict_types=1); |
| 2: | |
| 3: | namespace Salient\Curler; |
| 4: | |
| 5: | use Psr\Http\Message\RequestInterface as PsrRequestInterface; |
| 6: | use Salient\Contract\Curler\CurlerPageRequestInterface; |
| 7: | |
| 8: | |
| 9: | |
| 10: | |
| 11: | |
| 12: | |
| 13: | class CurlerPageRequest implements CurlerPageRequestInterface |
| 14: | { |
| 15: | protected PsrRequestInterface $NextRequest; |
| 16: | |
| 17: | protected ?array $NextQuery; |
| 18: | |
| 19: | |
| 20: | |
| 21: | |
| 22: | |
| 23: | |
| 24: | public function __construct( |
| 25: | PsrRequestInterface $nextRequest, |
| 26: | ?array $nextQuery = null |
| 27: | ) { |
| 28: | $this->NextRequest = $nextRequest; |
| 29: | $this->NextQuery = $nextQuery; |
| 30: | } |
| 31: | |
| 32: | |
| 33: | |
| 34: | |
| 35: | public function getRequest(): PsrRequestInterface |
| 36: | { |
| 37: | return $this->NextRequest; |
| 38: | } |
| 39: | |
| 40: | |
| 41: | |
| 42: | |
| 43: | public function getQuery(): ?array |
| 44: | { |
| 45: | return $this->NextQuery; |
| 46: | } |
| 47: | } |
| 48: | |