src/Oauth2Subscriber.php
public function setRefreshToken($refreshToken)
    {
        if (is_string($refreshToken)) {
            $refreshToken = new AccessToken($refreshToken, 'refresh_token');
        } elseif (!$refreshToken instanceof AccessToken) {
            throw new \InvalidArgumentException('Invalid refresh token');
        }
        $this->refreshToken = $refreshToken;
    }
public function setRefreshToken($refreshToken)
    {
        if (is_string($refreshToken)) {
            $refreshToken = new AccessToken($refreshToken, 'refresh_token');
        } elseif (!$refreshToken instanceof AccessToken) {
            throw new \InvalidArgumentException('Invalid refresh token');
        }
        $this->refreshToken = $refreshToken;
    }
public function setRefreshToken ( $ refreshToken ) { if ( is_string ( $ refreshToken ) ) { $ refreshToken = new AccessToken ( $ refreshToken , 'refresh_token' ) ; } elseif ( ! $ refreshToken instanceof AccessToken ) { throw new \ InvalidArgumentException ( 'Invalid refresh token' ) ; } $ this -> refreshToken = $ refreshToken ; }
Set the refresh token.

@param AccessToken|string $refreshToken The refresh token
Set the refresh token .