code: public function readQuestionAttempts($id) {
          $questionAttempts = $this->readStoreRecords('question_attempts', ['questionusageid' => $id]);
          foreach ($questionAttempts as $questionIndex => $questionAttempt) {
              $questionAttemptSteps = $this->readStoreRecords('question_attempt_steps', ['questionattemptid' => $questionAttempt->id]);
              foreach ($questionAttemptSteps as $stepIndex => $questionAttemptStep) {
                  $questionAttemptStep->data = $this->readStoreRecords('question_attempt_step_data', ['attemptstepid' => $questionAttemptStep->id]);
              }
              $questionAttempt->steps = $questionAttemptSteps;
          }
          return $questionAttempts;
      }
docs: Reads question attempts from the store with the given quiz attempt id.
  @param String $id
  @return PhpArr