|
@@ 40-46 (lines=7) @@
|
| 37 |
|
return $this->profileResponseFactory->fromProfileData($data); |
| 38 |
|
} |
| 39 |
|
|
| 40 |
|
public function getNextPage(ResponseInterface $response): ResponseInterface |
| 41 |
|
{ |
| 42 |
|
$json = $this->httpClient->getJson($this->httpClient->getUrl($response->getNextUrl())); |
| 43 |
|
$data = $this->decodeJsonToArray($json); |
| 44 |
|
|
| 45 |
|
return $this->profileResponseFactory->fromProfileData($data); |
| 46 |
|
} |
| 47 |
|
|
| 48 |
|
public function getPreviousPage(ResponseInterface $response): ResponseInterface |
| 49 |
|
{ |
|
@@ 48-54 (lines=7) @@
|
| 45 |
|
return $this->profileResponseFactory->fromProfileData($data); |
| 46 |
|
} |
| 47 |
|
|
| 48 |
|
public function getPreviousPage(ResponseInterface $response): ResponseInterface |
| 49 |
|
{ |
| 50 |
|
$json = $this->httpClient->getJson($this->httpClient->getUrl($response->getPreviousUrl())); |
| 51 |
|
$data = $this->decodeJsonToArray($json); |
| 52 |
|
|
| 53 |
|
return $this->profileResponseFactory->fromProfileData($data); |
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
/** |
| 57 |
|
* @param $json |