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