Response
HTTP Response
Tags
Table of Contents
- $array : array<string, mixed>
- Remote request response array.
- __construct() : mixed
- Construct response array.
- array_from_file() : array<string, mixed>
- From file.
- body() : string
- Body.
- get_array() : array<string, mixed>
- Get array.
- json() : mixed
- JSON.
- message() : string
- Message.
- simplexml() : SimpleXMLElement
- SimpleXML.
- status() : int|string
- Status.
Properties
$array
Remote request response array.
private
array<string, mixed>
$array
Methods
__construct()
Construct response array.
public
__construct(array<string, mixed> $array) : mixed
Parameters
- $array : array<string, mixed>
-
WordPress remote request response array.
Return values
mixed —array_from_file()
From file.
public
static array_from_file(string $file) : array<string, mixed>
Parameters
- $file : string
-
File.
Tags
Return values
array<string, mixed> —body()
Body.
public
body() : string
Tags
Return values
string —get_array()
Get array.
public
get_array() : array<string, mixed>
Return values
array<string, mixed> —json()
JSON.
public
json() : mixed
Tags
Return values
mixed —message()
Message.
public
message() : string
Tags
Return values
string —simplexml()
SimpleXML.
public
simplexml() : SimpleXMLElement
Tags
Return values
SimpleXMLElement —status()
Status.
public
status() : int|string