PHP 클래스 ThreeScaleResponse

파일 보기 프로젝트 열기: 3scale/3scale_ws_api_for_php 1 사용 예제들

공개 메소드들

메소드 설명
getErrorCode ( ) : string System error code.
getErrorMessage ( ) : string Human readable error message.
isSuccess ( ) : true Was the resposne successful?
setError ( $message, $code = null )
setSuccess ( )

메소드 상세

getErrorCode() 공개 메소드

System error code.
public getErrorCode ( ) : string
리턴 string system error code

getErrorMessage() 공개 메소드

Human readable error message.
public getErrorMessage ( ) : string
리턴 string error message

isSuccess() 공개 메소드

Was the resposne successful?
public isSuccess ( ) : true
리턴 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 setError ( $message, $code = null )

setSuccess() 공개 메소드

public setSuccess ( )