You are here

public function QuizResultAnswerBroken::score in Quiz 6.x

Same name and namespace in other branches
  1. 8.6 src/Entity/QuizResultAnswerBroken.php \Drupal\quiz\Entity\QuizResultAnswerBroken::score()
  2. 8.5 src/Entity/QuizResultAnswerBroken.php \Drupal\quiz\Entity\QuizResultAnswerBroken::score()

Calculate the unscaled score in points for this question response.

Parameters

array $values: A part of form state values with the question input from the user.

Return value

int|NULL The unscaled point value of the answer. If a point value is final, questions should make sure to run setEvaluated(). return NULL if the answer is not automatically scored.

Overrides QuizAnswerInterface::score

File

src/Entity/QuizResultAnswerBroken.php, line 11

Class

QuizResultAnswerBroken

Namespace

Drupal\quiz\Entity

Code

public function score(array $values) : ?int {
  return NULL;
}