original_string: public function setReceptionCode($code, $comment, $userId)
      {
          // Make sure it is a \Gems_Util_ReceptionCode object
          if (! $code instanceof \Gems_Util_ReceptionCode) {
              $code = $this->util->getReceptionCode($code);
          }
          $values['gto_reception_code'] = $code->getCode();
          if ($comment) {
              $values['gto_comment'] = $comment;
          }
          // \MUtil_Echo::track($values);
  
          $changed = $this->_updateToken($values, $userId);
  
          if ($changed) {
              if ($code->isOverwriter() || (! $code->isSuccess())) {
                  $survey = $this->getSurvey();
  
                  // Update the consent code in the source
                  if ($survey->inSource($this)) {
                      $survey->updateConsent($this);
                  }
              }
          }
  
          return $changed;
      }
code: public function setReceptionCode($code, $comment, $userId)
      {
          // Make sure it is a \Gems_Util_ReceptionCode object
          if (! $code instanceof \Gems_Util_ReceptionCode) {
              $code = $this->util->getReceptionCode($code);
          }
          $values['gto_reception_code'] = $code->getCode();
          if ($comment) {
              $values['gto_comment'] = $comment;
          }
          // \MUtil_Echo::track($values);
  
          $changed = $this->_updateToken($values, $userId);
  
          if ($changed) {
              if ($code->isOverwriter() || (! $code->isSuccess())) {
                  $survey = $this->getSurvey();
  
                  // Update the consent code in the source
                  if ($survey->inSource($this)) {
                      $survey->updateConsent($this);
                  }
              }
          }
  
          return $changed;
      }
code_tokens: public function setReceptionCode ( $ code , $ comment , $ userId ) { // Make sure it is a \Gems_Util_ReceptionCode object if ( ! $ code instanceof \ Gems_Util_ReceptionCode ) { $ code = $ this -> util -> getReceptionCode ( $ code ) ; } $ values [ 'gto_reception_code' ] = $ code -> getCode ( ) ; if ( $ comment ) { $ values [ 'gto_comment' ] = $ comment ; } // \MUtil_Echo::track($values); $ changed = $ this -> _updateToken ( $ values , $ userId ) ; if ( $ changed ) { if ( $ code -> isOverwriter ( ) || ( ! $ code -> isSuccess ( ) ) ) { $ survey = $ this -> getSurvey ( ) ; // Update the consent code in the source if ( $ survey -> inSource ( $ this ) ) { $ survey -> updateConsent ( $ this ) ; } } } return $ changed ; }
docstring: Set the reception code for this token and make sure the necessary
  cascade to the source takes place.
  
  @param string $code The new (non-success) reception code or a \Gems_Util_ReceptionCode object
  @param string $comment Comment False values leave value unchanged
  @param int $userId The current user
  @return int 1 if the token has changed, 0 otherwise
docstring_tokens: Set the reception code for this token and make sure the necessary cascade to the source takes place .