Class shardimage\shardimagephpapi\api\Response
Inheritance | shardimage\shardimagephpapi\api\Response » shardimage\shardimagephpapi\base\BaseObject |
---|---|
Implements | JsonSerializable |
Uses Traits | shardimage\shardimagephpapi\base\SimpleJsonSerializerTrait |
API response object.
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$callback | callable | Method to run after a successful non-polling request | shardimage\shardimagephpapi\api\Response |
$data | mixed | General response data | shardimage\shardimagephpapi\api\Response |
$error | shardimage\shardimagephpapi\api\ResponseError|null | Error object for the request | shardimage\shardimagephpapi\api\Response |
$id | string | Unique content ID | shardimage\shardimagephpapi\api\Response |
$jobId | string|null | Job ID for a polling request | shardimage\shardimagephpapi\api\Response |
$meta | array | Meta parameters in the response | shardimage\shardimagephpapi\api\Response |
$success | boolean | Is the request successful? | shardimage\shardimagephpapi\api\Response |
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | Creates the object, populates the properties and calls the "init" method. | shardimage\shardimagephpapi\base\BaseObject |
__get() | Returns the value of a non-defined property, it there is a getter method. | shardimage\shardimagephpapi\base\BaseObject |
__isset() | Does the non-defined property with a getter exist and is it not NULL? | shardimage\shardimagephpapi\base\BaseObject |
__set() | Sets the value of a non-defined property, if there is a setter method. | shardimage\shardimagephpapi\base\BaseObject |
__unset() | Sets the value of a non-defined property to NULL, if there is a setter. | shardimage\shardimagephpapi\base\BaseObject |
jsonSerialize() | Serializes the current object by cutting empty arrays and NULL properties. | shardimage\shardimagephpapi\base\SimpleJsonSerializerTrait |
toArray() | Converts the object an array. | shardimage\shardimagephpapi\base\BaseObject |
Protected Methods
Method | Description | Defined By |
---|---|---|
ensureClass() | Creates an object from the given parameters. | shardimage\shardimagephpapi\base\BaseObject |
init() | Custom initialization. | shardimage\shardimagephpapi\base\BaseObject |
Property Details
Method to run after a successful non-polling request
General response data
Error object for the request
Unique content ID
Job ID for a polling request
Meta parameters in the response
Is the request successful?