original_string: public function set($token, $type)
      {
          if ($type != 'request_token' && $type != 'access_token') {
              throw new \Dropbox\Exception("Expected a type of either 'request_token' or 'access_token', got '$type'");
          } else {
              $token = $this->encrypt($token);
              $_SESSION[$this->namespace][$this->userID][$type] = $token;
          }
      }
code: public function set($token, $type)
      {
          if ($type != 'request_token' && $type != 'access_token') {
              throw new \Dropbox\Exception("Expected a type of either 'request_token' or 'access_token', got '$type'");
          } else {
              $token = $this->encrypt($token);
              $_SESSION[$this->namespace][$this->userID][$type] = $token;
          }
      }
code_tokens: public function set ( $ token , $ type ) { if ( $ type != 'request_token' && $ type != 'access_token' ) { throw new \ Dropbox \ Exception ( "Expected a type of either 'request_token' or 'access_token', got '$type'" ) ; } else { $ token = $ this -> encrypt ( $ token ) ; $ _SESSION [ $ this -> namespace ] [ $ this -> userID ] [ $ type ] = $ token ; } }
docstring: Set an OAuth token in the session by type
  If the encryption object is set then encrypt the token before storing
  @param \stdClass Token object to set
  @param string $type Token type
  @return void
docstring_tokens: Set an OAuth token in the session by type If the encryption object is set then encrypt the token before storing