original_string: public function set_quiz($quiz) {
          $this->quiz = $quiz;
          $this->record->quizid = $quiz->id;
      }
code: public function set_quiz($quiz) {
          $this->quiz = $quiz;
          $this->record->quizid = $quiz->id;
      }
code_tokens: public function set_quiz ( $ quiz ) { $ this -> quiz = $ quiz ; $ this -> record -> quizid = $ quiz -> id ; }
docstring: Sets the quiz object for the quiz slot.
  It is not mandatory to set the quiz as the quiz slot can fetch it the first time it is accessed,
  however it helps with the performance to set the quiz if you already have it.
  
  @param \stdClass $quiz The qui object.
docstring_tokens: Sets the quiz object for the quiz slot . It is not mandatory to set the quiz as the quiz slot can fetch it the first time it is accessed however it helps with the performance to set the quiz if you already have it .