public function setToken($token)
    {
        $this->tokenKey = $token->key;
        $this->tokenSecret = $token->secret;

        return $this;
    }
public function setToken($token)
    {
        $this->tokenKey = $token->key;
        $this->tokenSecret = $token->secret;

        return $this;
    }
public function setToken ( $ token ) { $ this -> tokenKey = $ token -> key ; $ this -> tokenSecret = $ token -> secret ; return $ this ; }
Sets the oauth token attributes.

@param OAuthToken $token

@return ComConnectDomainEntityToken
Sets the oauth token attributes .