ResponseError
in package
implements
Stringable
Class ResponseError.
Table of Contents
Interfaces
- Stringable
Properties
- $error : string
- $errorNumber : int
- $info : array<string|int, mixed>
- $request : Request
Methods
- __construct() : mixed
- __toString() : string
- getError() : string
- getErrorNumber() : int
- getInfo() : array<string|int, mixed>
- getRequest() : Request
Properties
$error
protected
string
$error
$errorNumber
protected
int
$errorNumber
$info
protected
array<string|int, mixed>
$info
$request
protected
Request
$request
Methods
__construct()
public
__construct(Request $request, string $error, int $errorNumber, array<string|int, mixed> $info) : mixed
Parameters
- $request : Request
- $error : string
- $errorNumber : int
- $info : array<string|int, mixed>
__toString()
public
__toString() : string
Return values
stringgetError()
public
getError() : string
Return values
stringgetErrorNumber()
public
getErrorNumber() : int
Return values
intgetInfo()
public
getInfo() : array<string|int, mixed>
Attributes
- #[ArrayShape]
- ['appconnect_time_us' => 'int', 'certinfo' => 'array', 'connect_time' => 'float', 'connect_time_us' => 'int', 'content_type' => 'string', 'download_content_length' => 'float', 'effective_method' => 'string', 'filetime' => 'int', 'header_size' => 'int', 'http_code' => 'int', 'http_version' => 'int', 'local_ip' => 'string', 'local_port' => 'int', 'namelookup_time' => 'float', 'namelookup_time_us' => 'int', 'pretransfer_time' => 'float', 'pretransfer_time_us' => 'int', 'primary_ip' => 'string', 'primary_port' => 'int', 'protocol' => 'int', 'redirect_count' => 'int', 'redirect_time' => 'float', 'redirect_time_us' => 'int', 'redirect_url' => 'string', 'request_size' => 'int', 'scheme' => 'string', 'size_download' => 'float', 'size_upload' => 'float', 'speed_download' => 'float', 'speed_upload' => 'float', 'ssl_verify_result' => 'int', 'ssl_verifyresult' => 'int', 'starttransfer_time' => 'float', 'starttransfer_time_us' => 'int', 'total_time' => 'float', 'total_time_us' => 'int', 'upload_content_length' => 'float', 'url' => 'string']
Return values
array<string|int, mixed>getRequest()
public
getRequest() : Request