original_string: protected function add_step(question_attempt_step $step) {
          $this->steps[] = $step;
          end($this->steps);
          $this->observer->notify_step_added($step, $this, key($this->steps));
      }
code: protected function add_step(question_attempt_step $step) {
          $this->steps[] = $step;
          end($this->steps);
          $this->observer->notify_step_added($step, $this, key($this->steps));
      }
code_tokens: protected function add_step ( question_attempt_step $ step ) { $ this -> steps [ ] = $ step ; end ( $ this -> steps ) ; $ this -> observer -> notify_step_added ( $ step , $ this , key ( $ this -> steps ) ) ; }
docstring: Add a step to this question attempt.
  @param question_attempt_step $step the new step.
docstring_tokens: Add a step to this question attempt .