\OAuth2ResponseInterface

Interface which represents an object response. Meant to handle and display the proper OAuth2 Responses for errors and successes

Summary

Methods
Constants
addParameters()
addHttpHeaders()
setStatusCode()
setError()
setRedirect()
getParameter()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

addParameters()

addParameters(array  $parameters) 

Parameters

array $parameters

addHttpHeaders()

addHttpHeaders(array  $httpHeaders) 

Parameters

array $httpHeaders

setStatusCode()

setStatusCode(integer  $statusCode) 

Parameters

integer $statusCode

setError()

setError(integer  $statusCode, string  $name, string  $description = null, string  $uri = null) : mixed

Parameters

integer $statusCode
string $name
string $description
string $uri

Returns

mixed

setRedirect()

setRedirect(integer  $statusCode, string  $url, string  $state = null, string  $error = null, string  $errorDescription = null, string  $errorUri = null) : mixed

Parameters

integer $statusCode
string $url
string $state
string $error
string $errorDescription
string $errorUri

Returns

mixed

getParameter()

getParameter(string  $name) : mixed

Parameters

string $name

Returns

mixed