original_string: public function setFrequency($frequency) {
      if ($frequency >= 0 && $frequency <= 10) {
        $this->frequency = $frequency;
      }
      else {
        $this->triggerError('Invalid value for frequency advertisingSettings.');
      }
      return $this;
    }
code: public function setFrequency($frequency) {
      if ($frequency >= 0 && $frequency <= 10) {
        $this->frequency = $frequency;
      }
      else {
        $this->triggerError('Invalid value for frequency advertisingSettings.');
      }
      return $this;
    }
code_tokens: public function setFrequency ( $ frequency ) { if ( $ frequency >= 0 && $ frequency <= 10 ) { $ this -> frequency = $ frequency ; } else { $ this -> triggerError ( 'Invalid value for frequency advertisingSettings.' ) ; } return $ this ; }
docstring: Setter for frequency.
  
  @param int $frequency
  A number between 0 and 10 defining the frequency for automatically
  inserting advertising components into articles.
  
  @return $this
docstring_tokens: Setter for frequency .