|
|
|
@ -54,6 +54,16 @@ class Response {
@@ -54,6 +54,16 @@ class Response {
|
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Get the Response Code |
|
|
|
|
* |
|
|
|
|
* @return int |
|
|
|
|
*/ |
|
|
|
|
public function getCode(): int |
|
|
|
|
{ |
|
|
|
|
return $this->code; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Set Meta Data |
|
|
|
|
* |
|
|
|
@ -67,6 +77,16 @@ class Response {
@@ -67,6 +77,16 @@ class Response {
|
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Get the Response Meta |
|
|
|
|
* |
|
|
|
|
* @return string |
|
|
|
|
*/ |
|
|
|
|
public function getMeta(): string |
|
|
|
|
{ |
|
|
|
|
return $this->meta; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Set the Response content. |
|
|
|
|
* |
|
|
|
@ -80,6 +100,16 @@ class Response {
@@ -80,6 +100,16 @@ class Response {
|
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Get the Response content |
|
|
|
|
* |
|
|
|
|
* @return string |
|
|
|
|
*/ |
|
|
|
|
public function getContent(): string |
|
|
|
|
{ |
|
|
|
|
return $this->content; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Magic Method |
|
|
|
|
*/ |
|
|
|
|