original_string: public function set_behaviour_var($name, $value) {
          if ($name[0] != '_') {
              throw new coding_exception('Cannot set question type data ' . $name .
                      ' on an attempt step. You can only set variables with names begining with _.');
          }
          return $this->data['-' . $name] = $value;
      }
code: public function set_behaviour_var($name, $value) {
          if ($name[0] != '_') {
              throw new coding_exception('Cannot set question type data ' . $name .
                      ' on an attempt step. You can only set variables with names begining with _.');
          }
          return $this->data['-' . $name] = $value;
      }
code_tokens: public function set_behaviour_var ( $ name , $ value ) { if ( $ name [ 0 ] != '_' ) { throw new coding_exception ( 'Cannot set question type data ' . $ name . ' on an attempt step. You can only set variables with names begining with _.' ) ; } return $ this -> data [ '-' . $ name ] = $ value ; }
docstring: Set a cached behaviour variable.
  @param string $name the name of the variable to set. Must match _[a-z][a-z0-9]*.
  @param string $value the value to set.
docstring_tokens: Set a cached behaviour variable .