original_string: public function setParam($index, $value)
      {
          if (!isset($this->params[$index])) {
              throw new \InvalidArgumentException('Route parameter does not exist at specified index');
          }
          $this->params[$index] = $value;
      }
code: public function setParam($index, $value)
      {
          if (!isset($this->params[$index])) {
              throw new \InvalidArgumentException('Route parameter does not exist at specified index');
          }
          $this->params[$index] = $value;
      }
code_tokens: public function setParam ( $ index , $ value ) { if ( ! isset ( $ this -> params [ $ index ] ) ) { throw new \ InvalidArgumentException ( 'Route parameter does not exist at specified index' ) ; } $ this -> params [ $ index ] = $ value ; }
docstring: Set route parameter value
  @param  string                    $index     Name of URL parameter
  @param  mixed                     $value     The new parameter value
  @return void
  @throws \InvalidArgumentException            If route parameter does not exist at index
  @api
docstring_tokens: Set route parameter value