mirror of
https://github.com/YGGverse/titan-II.git
synced 2025-01-12 08:07:52 +00:00
Get methods for Response
This commit is contained in:
parent
62266d6c1f
commit
3a0a8bc265
@ -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 {
|
||||
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 {
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Response content
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getContent(): string
|
||||
{
|
||||
return $this->content;
|
||||
}
|
||||
|
||||
/**
|
||||
* Magic Method
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user