You are here

public function LPStatus::getScore in Opigno Learning path 8

Same name and namespace in other branches
  1. 3.x src/Entity/LPStatus.php \Drupal\opigno_learning_path\Entity\LPStatus::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 LPStatusInterface::getScore

File

src/Entity/LPStatus.php, line 134

Class

LPStatus
Defines the User Learning Path attempt status entity.

Namespace

Drupal\opigno_learning_path\Entity

Code

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