We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e38975e commit cd8c881Copy full SHA for cd8c881
1 file changed
src/Endpoint/AbstractWpEndpoint.php
@@ -3,6 +3,7 @@
3
namespace Vnn\WpApiClient\Endpoint;
4
5
use GuzzleHttp\Psr7\Request;
6
+use GuzzleHttp\Psr7\Response;
7
use RuntimeException;
8
use Vnn\WpApiClient\WpClient;
9
@@ -32,9 +33,10 @@ abstract protected function getEndpoint();
32
33
* @param int $id
34
* @param array $params - parameters that can be passed to GET
35
* e.g. for tags: https://developer.wordpress.org/rest-api/reference/tags/#arguments
36
+ * @param Response $response The whole response object.
37
* @return array
38
*/
- public function get($id = null, array $params = null)
39
+ public function get($id = null, array $params = null, Response &$response = null)
40
{
41
$uri = $this->getEndpoint();
42
$uri .= (is_null($id)?'': '/' . $id);
0 commit comments