original_string: public function get_last_step_with_behaviour_var($name) {
          foreach ($this->get_reverse_step_iterator() as $step) {
              if ($step->has_behaviour_var($name)) {
                  return $step;
              }
          }
          return new question_attempt_step_read_only();
      }
code: public function get_last_step_with_behaviour_var($name) {
          foreach ($this->get_reverse_step_iterator() as $step) {
              if ($step->has_behaviour_var($name)) {
                  return $step;
              }
          }
          return new question_attempt_step_read_only();
      }
code_tokens: public function get_last_step_with_behaviour_var ( $ name ) { foreach ( $ this -> get_reverse_step_iterator ( ) as $ step ) { if ( $ step -> has_behaviour_var ( $ name ) ) { return $ step ; } } return new question_attempt_step_read_only ( ) ; }
docstring: Get the last step with a particular behaviour variable set.
  @param string $name the name of the variable to get.
  @return question_attempt_step the last step, or a step with no variables
  if there was not a real step.
docstring_tokens: Get the last step with a particular behaviour variable set .