Skip to content

Commit cd8c881

Browse files
committed
AbstractWpEndpoint's get() method now populates an optional $response arg
1 parent e38975e commit cd8c881

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Endpoint/AbstractWpEndpoint.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Vnn\WpApiClient\Endpoint;
44

55
use GuzzleHttp\Psr7\Request;
6+
use GuzzleHttp\Psr7\Response;
67
use RuntimeException;
78
use Vnn\WpApiClient\WpClient;
89

@@ -32,9 +33,10 @@ abstract protected function getEndpoint();
3233
* @param int $id
3334
* @param array $params - parameters that can be passed to GET
3435
* e.g. for tags: https://developer.wordpress.org/rest-api/reference/tags/#arguments
36+
* @param Response $response The whole response object.
3537
* @return array
3638
*/
37-
public function get($id = null, array $params = null)
39+
public function get($id = null, array $params = null, Response &$response = null)
3840
{
3941
$uri = $this->getEndpoint();
4042
$uri .= (is_null($id)?'': '/' . $id);

0 commit comments

Comments
 (0)