public function ILTResult::getScore in Opigno Instructor-led Trainings 3.x
Same name and namespace in other branches
- 8 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\EntityCode
public function getScore() {
return $this
->get('score')->value;
}