protected function add_autosaved_step(question_attempt_step $step) {
        $this->steps[] = $step;
        $this->autosavedstep = $step;
        end($this->steps);
        $this->observer->notify_step_added($step, $this, -key($this->steps));
    }
protected function add_autosaved_step(question_attempt_step $step) {
        $this->steps[] = $step;
        $this->autosavedstep = $step;
        end($this->steps);
        $this->observer->notify_step_added($step, $this, -key($this->steps));
    }
protected function add_autosaved_step ( question_attempt_step $ step ) { $ this -> steps [ ] = $ step ; $ this -> autosavedstep = $ step ; end ( $ this -> steps ) ; $ this -> observer -> notify_step_added ( $ step , $ this , - key ( $ this -> steps ) ) ; }
Add an auto-saved step to this question attempt. We mark auto-saved steps by
changing saving the step number with a - sign.
@param question_attempt_step $step the new step.
Add an auto - saved step to this question attempt . We mark auto - saved steps by changing saving the step number with a - sign .