You are here

public function ILTResult::getScore in Opigno Instructor-led Trainings 8

Same name and namespace in other branches
  1. 3.x src/Entity/ILTResult.php \Drupal\opigno_ilt\Entity\ILTResult::getScore()

Returns the user score.

Return value

int|null The user score, or NULL in case the user score field has not been set on the entity.

Overrides ILTResultInterface::getScore

File

src/Entity/ILTResult.php, line 133

Class

ILTResult
Defines the ILT Result entity.

Namespace

Drupal\opigno_ilt\Entity

Code

public function getScore() {
  return $this
    ->get('score')->value;
}