Skip to content

Commit f417038

Browse files
authored
Merge pull request #150 from Adadov/master
Add setConsumerKey function
2 parents 741efe9 + 43297a7 commit f417038

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Api.php

+9-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ protected function rawCall($method, $path, $content = null, $is_authenticated =
327327
*
328328
* @throws \JsonException
329329
*/
330-
private function decodeResponse(Response $response)
330+
private function decodeResponse(ResponseInterface $response)
331331
{
332332
if ($response->getStatusCode() === 204 || $response->getBody()->getSize() === 0) {
333333
return null;
@@ -419,6 +419,14 @@ public function getConsumerKey(): ?string
419419
return $this->consumer_key;
420420
}
421421

422+
/**
423+
* Get the current consumer key
424+
*/
425+
public function setConsumerKey($consumer_key): void
426+
{
427+
$this->consumer_key = $consumer_key;
428+
}
429+
422430
/**
423431
* Return instance of http client
424432
*/

0 commit comments

Comments
 (0)