public function RequestBuilder::setReturnType in Auth0 Single Sign On 8.2
Parameters
$type:
Return value
$this
Throws
CoreException When the type passed is not valid.
1 call to RequestBuilder::setReturnType()
- RequestBuilder::__construct in vendor/
auth0/ auth0-php/ src/ API/ Helpers/ RequestBuilder.php - RequestBuilder constructor.
File
- vendor/
auth0/ auth0-php/ src/ API/ Helpers/ RequestBuilder.php, line 405
Class
- RequestBuilder
- Class RequestBuilder
Namespace
Auth0\SDK\API\HelpersCode
public function setReturnType($type) {
if (empty($type)) {
$type = 'body';
}
if (!in_array($type, $this->returnTypes)) {
throw new CoreException('Invalid returnType');
}
$this->returnType = $type;
return $this;
}