PHP Class ThreeScaleResponse

Mostra file Open project: 3scale/3scale_ws_api_for_php Class Usage Examples

Public Methods

Method Description
getErrorCode ( ) : string System error code.
getErrorMessage ( ) : string Human readable error message.
isSuccess ( ) : true Was the resposne successful?
setError ( $message, $code = null )
setSuccess ( )

Method Details

getErrorCode() public method

System error code.
public getErrorCode ( ) : string
return string system error code

getErrorMessage() public method

Human readable error message.
public getErrorMessage ( ) : string
return string error message

isSuccess() public method

Was the resposne successful?
public isSuccess ( ) : true
return true if yes, false if not If the response is not successful, the getErrorCode() and getErrorMessage() methods return more more detailed information about the error.

setError() public method

public setError ( $message, $code = null )

setSuccess() public method

public setSuccess ( )