original_string: public function updateSubscription(
          $subscriptionId,
          $nextEvent = null,
          $subscriptionExternalId = null,
          $status = null,
          array $xAttributes = [],
          array $features = []
      ) {
          $requestData = new Update\RequestData($subscriptionId);
  
          $requestData->setSubscriptionId($subscriptionId);
          $requestData->setNextEvent($nextEvent);
          $requestData->setSubscriptionExternalId($subscriptionExternalId);
          $requestData->setStatus($status);
          $requestData->setXAttributes($xAttributes);
          $requestData->setFeatures($features);
  
          $request = new Update\Request($requestData);
  
          return $this->sendRequest($request, Update\ApiResponse::class);
      }
code: public function updateSubscription(
          $subscriptionId,
          $nextEvent = null,
          $subscriptionExternalId = null,
          $status = null,
          array $xAttributes = [],
          array $features = []
      ) {
          $requestData = new Update\RequestData($subscriptionId);
  
          $requestData->setSubscriptionId($subscriptionId);
          $requestData->setNextEvent($nextEvent);
          $requestData->setSubscriptionExternalId($subscriptionExternalId);
          $requestData->setStatus($status);
          $requestData->setXAttributes($xAttributes);
          $requestData->setFeatures($features);
  
          $request = new Update\Request($requestData);
  
          return $this->sendRequest($request, Update\ApiResponse::class);
      }
code_tokens: public function updateSubscription ( $ subscriptionId , $ nextEvent = null , $ subscriptionExternalId = null , $ status = null , array $ xAttributes = [ ] , array $ features = [ ] ) { $ requestData = new Update \ RequestData ( $ subscriptionId ) ; $ requestData -> setSubscriptionId ( $ subscriptionId ) ; $ requestData -> setNextEvent ( $ nextEvent ) ; $ requestData -> setSubscriptionExternalId ( $ subscriptionExternalId ) ; $ requestData -> setStatus ( $ status ) ; $ requestData -> setXAttributes ( $ xAttributes ) ; $ requestData -> setFeatures ( $ features ) ; $ request = new Update \ Request ( $ requestData ) ; return $ this -> sendRequest ( $ request , Update \ ApiResponse :: class ) ; }
docstring: Update a subscription.
  
  @param integer $subscriptionId The subscription ID.
  @param \DateTime $nextEvent The next event date and time.
  @param string $subscriptionExternalId The external subscription ID.
  @param string $status The subscription status.
  @param array $xAttributes The subscription x attributes.
  @param Feature[] $features The features.
  @return Update\ApiResponse
docstring_tokens: Update a subscription .