Meta
in package
Has information about how the request went
Table of Contents
Properties
- $httpCode : int
- $og : object
- $proxitokCode : int
- $proxitokMsg : string
- $response : Response
- $success : bool
Methods
- __construct() : mixed
- getCode() : int
- getMsg() : string
- setOgIfExists() : void
- setState() : mixed
Properties
$httpCode
public
int
$httpCode
= 503
$og
public
object
$og
$proxitokCode
public
int
$proxitokCode
= -1
$proxitokMsg
public
string
$proxitokMsg
= ''
$response
public
Response
$response
$success
public
bool
$success
= false
Methods
__construct()
public
__construct(Response $res) : mixed
Parameters
- $res : Response
getCode()
private
getCode(object $data) : int
Parameters
- $data : object
Return values
intgetMsg()
private
getMsg(object $data) : string
Parameters
- $data : object
Return values
stringsetOgIfExists()
private
setOgIfExists(object|null $root) : void
Parameters
- $root : object|null
setState()
private
setState(bool $http_success, int $proxitokCode, string $proxitokMsg) : mixed
Parameters
- $http_success : bool
- $proxitokCode : int
- $proxitokMsg : string