Browse Source

Get methods for Response

main
Tanner Mckenney 3 years ago
parent
commit
3a0a8bc265
  1. 30
      src/Response.php

30
src/Response.php

@ -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
*/

Loading…
Cancel
Save