SimpleApi Request Interface
Describes SimpleApi Request interface.
hasAuthorization
Checks if a has authorization header.
$grant_type = $request->hasAuthorization();
getAuthorization
Return an instance with provided authorization header.
$authorization = $request->getAuthorization();
getAuthType
Retrieve provided authorization type.
$auth_type = $request->getAuthType();
withAuthType
Return an instance with provided authorization type.
$request = $request->withAuthType($auth_type);
getCredentials
Retrieve provided authorization credentials.
$credentials = $request->getCredentials();
withCredentials
Return an instance with provided authorization credentials.
$request = $request->withCredentials($credentials);