WorkOS PHP SDK

ErrorBodyWithCodeStatusCode
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$code  : string|null
The error code identifying the type of error.
$message  : string|null
A human-readable description of the error.
$statusCode  : float|null
The HTTP status code.

Methods

__construct()  : mixed
fromArray()  : self
jsonSerialize()  : array<string|int, mixed>
toArray()  : array<string|int, mixed>

Properties

Methods

__construct()

public __construct([string|null $message = null ][, string|null $code = null ][, float|null $statusCode = null ]) : mixed
Parameters
$message : string|null = null
$code : string|null = null
$statusCode : float|null = null

fromArray()

public static fromArray(array<string|int, mixed> $data) : self
Parameters
$data : array<string|int, mixed>
Return values
self

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>
On this page

Search results