Class ApiIntegratorResponseModel
Model for api responses
- Davek1312\ApiIntegrator\Models\ApiIntegratorBaseModel uses Davek1312\Serialise\Traits\Serialise (not available) Davek1312\Serialise\Traits\Deserialise (not available)
-
Davek1312\ApiIntegrator\Models\ApiIntegratorResponseModel
Abstract
Namespace: Davek1312\ApiIntegrator\Models
Author: David Kelly davek1312@gmail.com
Located at Models/ApiIntegratorResponseModel.php
Namespace: Davek1312\ApiIntegrator\Models
Author: David Kelly davek1312@gmail.com
Located at Models/ApiIntegratorResponseModel.php
public
|
|
public
object
|
|
public
string
|
#
getResponseErrorMessage( )
Returns the error message returned by the API. This should be overridden to point the child method containing the API's error message |
public
string
|
#
getResponseErrorCode( )
Returns the error code returned by the API. This should be overridden to point the child method containing the API's error code |
public
boolean
|
#
hasResponseError( )
Returns true if getResponseErrorMessage() or getResponseErrorCode() is not empty |
public
string
|
|
public
|
protected
string
|
$dataType
The API's response format: 'json' OR 'xml' |