|
PHP RestApi
REST is an acronym for REpresentational State Transfer and an architectural style for distributed hypermedia systems.
|
Classes | |
| class | AbstractResponse |
| class | AuthError |
| class | AuthType |
| class | GrantType |
| class | HttpStatus |
| class | Util |
Functions | |
| getError () | |
| withError (string $Error) | |
| getErrorDescription () | |
| withErrorDescription (string $ErrorDescription) | |
| getErrorUri () | |
| withErrorUri (string $ErrorUri) | |
| parseErrorResponse (array $Data) | |
| raiseErrorResponse (array &$Result) | |
Variables | |
| trait | ErrorResponseTrait |
| $error_description = "" | |
| $error_uri = "" | |
| Samy\RestApi\getError | ( | ) |
Retrieve provided error parameter
| Samy\RestApi\getErrorDescription | ( | ) |
Retrieve provided error description.
| Samy\RestApi\getErrorUri | ( | ) |
Retrieve provided error uri.
|
protected |
Return an instance with parsed error response.
| [in] | array | $Data | Error response data. |
|
protected |
Raise error response.
| [in,out] | array | $Result | Error response data. |
| Samy\RestApi\withError | ( | string | $Error | ) |
Return an instance with provided error parameter.
| [in] | string | $Error | Error parameter. |
| Samy\RestApi\withErrorDescription | ( | string | $ErrorDescription | ) |
Return an instance with provided error description.
| [in] | string | $ErrorDescription | Error description. |
| Samy\RestApi\withErrorUri | ( | string | $ErrorUri | ) |
Return an instance with provided error uri.
| [in] | string | $ErrorUri | Error uri. |
|
protected |
describe error_description
|
protected |
describe error uri
| trait Samy::RestApi\ErrorResponseTrait |
Describes RestApi Error Response reuse code.