You are here

public function UserModuleStatus::setScore in Opigno module 8

Same name and namespace in other branches
  1. 3.x src/Entity/UserModuleStatus.php \Drupal\opigno_module\Entity\UserModuleStatus::setScore()
1 call to UserModuleStatus::setScore()
UserModuleStatus::finishAttempt in src/Entity/UserModuleStatus.php
Finish user attempt.

File

src/Entity/UserModuleStatus.php, line 228

Class

UserModuleStatus
Defines the User module status entity.

Namespace

Drupal\opigno_module\Entity

Code

public function setScore($value) {
  $this
    ->set('score', $value);
  return $this;
}