fkooman\OAuth\Client\TokenResponse::setTokenType PHP Method

setTokenType() public method

public setTokenType ( $tokenType )
    public function setTokenType($tokenType)
    {
        if (!is_string($tokenType) || 0 >= strlen($tokenType)) {
            throw new TokenResponseException('token_type needs to be a non-empty string');
        }
        $this->tokenType = $tokenType;
    }