ApiResponse
class ApiResponse implements ModelInterface, ArrayAccess, JsonSerializable
ApiResponse Class Doc Comment
Constants
DISCRIMINATOR |
|
Properties
static protected string | $openAPIModelName | The original name of the model. |
|
static protected string[] | $openAPITypes | Array of property to type mappings. Used for (de)serialization |
|
static protected string[] | $openAPIFormats | Array of property to format mappings. Used for (de)serialization |
|
static protected bool[] | $openAPINullables | Array of nullable properties. Used for (de)serialization |
|
protected bool[] | $openAPINullablesSetToNull | If a nullable field gets set to null, insert it here |
|
static protected string[] | $attributeMap | Array of attributes where the key is the local name, and the value is the original name |
|
static protected string[] | $setters | Array of attributes to setter functions (for deserialization of responses) |
|
static protected string[] | $getters | Array of attributes to getter functions (for serialization of requests) |
|
protected array | $container | Associative array for storing property values |
Methods
Array of property to type mappings. Used for (de)serialization
Array of property to format mappings. Used for (de)serialization
Array of nullable properties
Checks if a property is nullable
Checks if a nullable property is set to null.
Array of attributes where the key is the local name, and the value is the original name
Array of attributes to setter functions (for deserialization of responses)
Array of attributes to getter functions (for serialization of requests)
The original name of the model.
Constructor
Show all the invalid properties with reasons.
Validate all the properties in the model return true if all passed
Gets code
Sets code
Gets type
Sets type
Gets message
Sets message
Returns true if offset exists. False otherwise.
Gets offset.
Sets value based on offset.
Unsets offset.
Serializes the object to a value that can be serialized natively by json_encode().
Gets the string presentation of the object
Gets a header-safe presentation of the object
Details
at line 102
static array
openAPITypes()
Array of property to type mappings. Used for (de)serialization
at line 112
static array
openAPIFormats()
Array of property to format mappings. Used for (de)serialization
at line 122
static protected array
openAPINullables()
Array of nullable properties
at line 143
static bool
isNullable(string $property)
Checks if a property is nullable
at line 154
bool
isNullableSetToNull(string $property)
Checks if a nullable property is set to null.
at line 199
static array
attributeMap()
Array of attributes where the key is the local name, and the value is the original name
at line 209
static array
setters()
Array of attributes to setter functions (for deserialization of responses)
at line 219
static array
getters()
Array of attributes to getter functions (for serialization of requests)
at line 229
string
getModelName()
The original name of the model.
at line 248
__construct(array $data = null)
Constructor
at line 278
array
listInvalidProperties()
Show all the invalid properties with reasons.
at line 291
bool
valid()
Validate all the properties in the model return true if all passed
at line 302
int|null
getCode()
Gets code
at line 314
ApiResponse
setCode(int|null $code)
Sets code
at line 331
string|null
getType()
Gets type
at line 343
ApiResponse
setType(string|null $type)
Sets type
at line 360
string|null
getMessage()
Gets message
at line 372
ApiResponse
setMessage(string|null $message)
Sets message
at line 390
bool
offsetExists(int $offset)
Returns true if offset exists. False otherwise.
at line 402
mixed|null
offsetGet(int $offset)
Gets offset.
at line 416
void
offsetSet(int|null $offset, mixed $value)
Sets value based on offset.
at line 432
void
offsetUnset(int $offset)
Unsets offset.
at line 444
mixed
jsonSerialize()
Serializes the object to a value that can be serialized natively by json_encode().
at line 455
string
__toString()
Gets the string presentation of the object
at line 468
string
toHeaderValue()
Gets a header-safe presentation of the object